| @@ -61,11 +61,10 @@ | ||
| 61 | 61 | |
| 62 | 62 | add_submenu_page( $slug, $title, $menu_title, $capability, $slug, [ __CLASS__, 'plugin_page' ] ); |
| 63 | 63 | |
| 64 | 64 | add_submenu_page( $slug, $title, 'Add new', $capability, $slug . '-settings', [ __CLASS__, 'settings' ] ); |
| 65 | - add_submenu_page( $slug, $title, 'Snippets', $capability, $slug . '-snippets', [ __CLASS__, 'snippets' ] ); | |
| 66 | 65 | add_submenu_page( $slug, $title, 'Global PHP', $capability, $slug . '-global', [ __CLASS__, 'global_php' ] ); |
| 67 | - add_submenu_page( $slug, $title, 'Import / Export', $capability, $slug . '-tools', [ __CLASS__, 'tools' ] ); | |
| 66 | + add_submenu_page( $slug, $title, 'Tools', $capability, $slug . '-tools', [ __CLASS__, 'tools' ] ); | |
| 68 | 67 | add_submenu_page( $slug, $title, 'Support', $capability, $slug . '-support', [ __CLASS__, 'support' ] ); |
| 69 | 68 | add_submenu_page( $slug, $title, 'Upgrade to Pro', $capability, $url_update ); |
| 70 | 69 | } |
| 71 | 70 | |
| @@ -82,16 +81,8 @@ | ||
| 82 | 81 | } |
| 83 | 82 | |
| 84 | 83 | public static function settings(): void { |
| 85 | 84 | $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/2.settings.php'; |
| 86 | - | |
| 87 | - if ( file_exists( $page_path ) ) { | |
| 88 | - require_once $page_path; | |
| 89 | - } | |
| 90 | - } | |
| 91 | - | |
| 92 | - public static function snippets() { | |
| 93 | - $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/3.snippets.php'; | |
| 94 | 85 | |
| 95 | 86 | if ( file_exists( $page_path ) ) { |
| 96 | 87 | require_once $page_path; |
| 97 | 88 | } |