PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.5
WP Coder – Insert & Manage Code Snippets v3.5
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | classes/Admin/AdminInitializer.php +11 -2 3.43.5 View file →
@@ -62,10 +62,11 @@
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 65 add_submenu_page( $slug, $title, 'Snippets', $capability, $slug . '-snippets', [ __CLASS__, 'snippets' ] );
66 + add_submenu_page( $slug, $title, 'Tools', $capability, $slug . '-tools', [ __CLASS__, 'tools' ] );
66 67 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' ] );
68 + add_submenu_page( $slug, $title, 'Import / Export', $capability, $slug . '-import-export', [ __CLASS__, 'import_export' ] );
68 69 add_submenu_page( $slug, $title, 'Support', $capability, $slug . '-support', [ __CLASS__, 'support' ] );
69 70 add_submenu_page( $slug, $title, 'Upgrade to Pro', $capability, $url_update );
70 71 }
71 72
@@ -105,9 +106,17 @@
105 106 }
106 107 }
107 108
108 109 public static function tools() {
109 - $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/3.tools.php';
110 + $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/4.tools.php';
111 +
112 + if ( file_exists( $page_path ) ) {
113 + require_once $page_path;
114 + }
115 + }
116 +
117 + public static function import_export() {
118 + $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/4.import-export.php';
110 119
111 120 if ( file_exists( $page_path ) ) {
112 121 require_once $page_path;
113 122 }