-
Home
-
Force Refresh
- Tips
How to Hide the "Force Refresh" Admin Menu
function plt_hide_force_refresh_menus() {
//Hide the "Tools → Force Refresh" menu.
remove_submenu_page('tools.php', 'force_refresh');
}
add_action('admin_menu', 'plt_hide_force_refresh_menus', 11);
Where do I put this code?
How to Hide the "Force Refresh" Meta Box
function plt_hide_force_refresh_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Force Refresh" meta box.
remove_meta_box('force_refresh_specific_page_refresh', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_force_refresh_metaboxes', 20);