PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.1.1
WP Coder – Insert & Manage Code Snippets v3.1.1
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 +4 -22 3.5.13.1.1 View file →
@@ -52,21 +52,19 @@
52 52 $parent = 'wp-coder';
53 53 $title = WPCoder::info( 'name' ) . ' version ' . WPCoder::info( 'version' );
54 54 $main_title = WPCoder::info( 'name' );
55 55 $menu_title = 'All Codes';
56 - $capability = 'manage_options';
56 + $capability = 'unfiltered_html';
57 57 $slug = WPCoder::SLUG;
58 58 $url_update = 'https://wpcoder.pro/pricing/?utm_source=wordpress&utm_medium=admin-menu&utm_campaign=upgrade-to-pro';
59 59
60 - add_menu_page( $main_title, $main_title, 'manage_options', $slug, [ __CLASS__, 'plugin_page' ], $icon );
60 + add_menu_page( $main_title, $main_title, 'unfiltered_html', $slug, [ __CLASS__, 'plugin_page' ], $icon );
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' ] );
65 + add_submenu_page( $slug, $title, 'Global PHP', $capability, $slug . '-global', [ __CLASS__, 'global_php' ] );
66 66 add_submenu_page( $slug, $title, 'Tools', $capability, $slug . '-tools', [ __CLASS__, 'tools' ] );
67 - add_submenu_page( $slug, $title, 'Global PHP', $capability, $slug . '-global', [ __CLASS__, 'global_php' ] );
68 - add_submenu_page( $slug, $title, 'Import / Export', $capability, $slug . '-import-export', [ __CLASS__, 'import_export' ] );
69 67 add_submenu_page( $slug, $title, 'Support', $capability, $slug . '-support', [ __CLASS__, 'support' ] );
70 68 add_submenu_page( $slug, $title, 'Upgrade to Pro', $capability, $url_update );
71 69 }
72 70
@@ -89,16 +87,8 @@
89 87 require_once $page_path;
90 88 }
91 89 }
92 90
93 - public static function snippets() {
94 - $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/3.snippets.php';
95 -
96 - if ( file_exists( $page_path ) ) {
97 - require_once $page_path;
98 - }
99 - }
100 -
101 91 public static function global_php() {
102 92 $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/global-php.php';
103 93
104 94 if ( file_exists( $page_path ) ) {
@@ -106,17 +96,9 @@
106 96 }
107 97 }
108 98
109 99 public static function tools() {
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';
100 + $page_path = DashboardHelper::get_folder_path( 'pages' ) . '/3.tools.php';
119 101
120 102 if ( file_exists( $page_path ) ) {
121 103 require_once $page_path;
122 104 }