| @@ -44,19 +44,8 @@ | ||
| 44 | 44 | 'capability' => 'manage_options', |
| 45 | 45 | 'priority' => 20, |
| 46 | 46 | 'callback' => [ AdminAddonsPage::instance(), 'html_page' ], |
| 47 | 47 | ], |
| 48 | - // Themes. | |
| 49 | - 'themes' => [ | |
| 50 | - 'id' => 'learn-press-themes', | |
| 51 | - 'menu_title' => __( 'Themes', 'learnpress' ), | |
| 52 | - 'page_title' => __( 'LearnPress Themes', 'learnpress' ), | |
| 53 | - 'capability' => 'manage_options', | |
| 54 | - 'priority' => 20, | |
| 55 | - 'callback' => function () { | |
| 56 | - learn_press_admin_view( 'addons/html-themes' ); | |
| 57 | - }, | |
| 58 | - ], | |
| 59 | 48 | // Settings. |
| 60 | 49 | 'settings' => [ |
| 61 | 50 | 'id' => 'learn-press-settings', |
| 62 | 51 | 'menu_title' => esc_html__( 'Settings', 'learnpress' ), |
| @@ -73,8 +62,18 @@ | ||
| 73 | 62 | 'capability' => 'manage_options', |
| 74 | 63 | 'priority' => 25, |
| 75 | 64 | 'callback' => function () { |
| 76 | 65 | learn_press_admin_view( 'help-center/html-help-center' ); |
| 66 | + }, | |
| 67 | + ], | |
| 68 | + 'themes' => [ | |
| 69 | + 'id' => 'learn-press-themes', | |
| 70 | + 'menu_title' => __( 'Themes', 'learnpress' ), | |
| 71 | + 'page_title' => __( 'LearnPress Themes', 'learnpress' ), | |
| 72 | + 'capability' => 'manage_options', | |
| 73 | + 'priority' => 25, | |
| 74 | + 'callback' => function () { | |
| 75 | + learn_press_admin_view( 'themes/html-themes' ); | |
| 77 | 76 | }, |
| 78 | 77 | ], |
| 79 | 78 | // Tools. |
| 80 | 79 | 'tools' => [ |