-
Home
-
Super Page Cache
- Tips
How to Hide the "Super Page Cache" Admin Menu
function plt_hide_wp_cloudflare_page_cache_menus() {
//Hide the "Settings → Super Page Cache" menu.
remove_submenu_page('options-general.php', 'wp-cloudflare-super-page-cache-index');
}
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);