-
Home
-
WP Tools Increase Maximum Limits, Repair, Server PHP Info, Javascript errors, File Permissions, Transients, Error Log
- Tips
function plt_hide_wptools_menus() {
//Hide "Plugins → MU Plugins".
remove_submenu_page('plugins.php', 'mu-plugins');
//Hide "WP Tools".
remove_menu_page('wp-tools');
//Hide "WP Tools → Dashboard".
remove_submenu_page('wp-tools', 'wp-tools');
//Hide "WP Tools → Settings".
remove_submenu_page('wp-tools', 'settings-wptools');
//Hide "WP Tools → Check mySQL Tables".
remove_submenu_page('wp-tools', 'wptools_options23');
//Hide "WP Tools → Database Detais".
remove_submenu_page('wp-tools', 'wptools_options32');
//Hide "WP Tools → Server Benchmark".
remove_submenu_page('wp-tools', 'wptools_options30');
//Hide "WP Tools → Javascrip and jQuery".
remove_submenu_page('wp-tools', 'wptools_options35');
//Hide "WP Tools → Show Cookies".
remove_submenu_page('wp-tools', 'wptools_options28');
//Hide "WP Tools → Show File Permissions".
remove_submenu_page('wp-tools', 'wptools_options29');
//Hide "WP Tools → Show Cron Jobs".
remove_submenu_page('wp-tools', 'wptools_options27');
//Hide "WP Tools → Show wp-config.php".
remove_submenu_page('wp-tools', 'wptools_options26');
//Hide "WP Tools → Show .htaccess".
remove_submenu_page('wp-tools', 'wptools_options25');
//Hide "WP Tools → Show PHP Info".
remove_submenu_page('wp-tools', 'wptools_options22');
//Hide "WP Tools → Show Errors".
remove_submenu_page('wp-tools', 'wptools_options21');
//Hide "WP Tools →".
remove_submenu_page('wp-tools', 'wptools_options31');
//Hide "WP Tools → Erase .maintenance file".
remove_submenu_page('wp-tools', 'wptools_options40');
//Hide "WP Tools → Edit robots txt".
remove_submenu_page('wp-tools', 'wptools_options24');
//Hide "WP Tools → Show Transients".
remove_submenu_page('wp-tools', 'wptools_options33');
//Hide "WP Tools → More New Tools".
remove_submenu_page('wp-tools', 'wptools_options39');
//Hide "WP Tools → Go Pro".
remove_submenu_page('wp-tools', 'wptools_my-custom-submenu-page9');
}
add_action('admin_menu', 'plt_hide_wptools_menus', 100);
Where do I put this code?