-
Home
-
Super Page Cache
- Tips
How to Hide Super Page Cache Admin Menus
function plt_hide_wp_cloudflare_page_cache_menus() {
//Hide "Tools → Scheduled Actions".
remove_submenu_page('tools.php', 'action-scheduler');
//Hide "Super Page Cache".
remove_menu_page('super-page-cache');
//Hide "Super Page Cache → Dashboard".
remove_submenu_page('super-page-cache', 'super-page-cache');
//Hide "Super Page Cache → Settings".
remove_submenu_page('super-page-cache', 'super-page-cache-settings');
//Hide "Super Page Cache → Import/Export".
remove_submenu_page('super-page-cache', 'super-page-cache-import-export');
//Hide "Super Page Cache → Help".
remove_submenu_page('super-page-cache', 'super-page-cache-help');
//Hide "Super Page Cache → About Us".
remove_submenu_page('super-page-cache', 'ti-about-wp_cloudflare_page_cache');
//Hide "Super Page Cache → Upgrade to PRO".
remove_submenu_page('super-page-cache', 'https://themeisle.com/plugins/super-page-cache-pro?utm_source=wpadmin&utm_medium=spc&utm_campaign=aboutfilter&utm_content=super-page-cache-pro');
}
add_action('admin_menu', 'plt_hide_wp_cloudflare_page_cache_menus', 11);
Where do I put this code?
How to Hide the "WordPress Guides/Tutorials" Dashboard Widget
function plt_hide_wp_cloudflare_page_cache_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WordPress Guides/Tutorials" widget.
remove_meta_box('themeisle', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_wp_cloudflare_page_cache_dashboard_widgets', 20);