-
Home
-
Lazy Load for Videos
- Tips
How to Hide the "Lazy Load for Videos" Admin Menu
function plt_hide_lazy_load_for_videos_menus() {
//Hide the "Settings → Lazy Load for Videos" menu.
remove_submenu_page('options-general.php', 'lazyload.php');
}
add_action('admin_menu', 'plt_hide_lazy_load_for_videos_menus', 11);
Where do I put this code?
How to Hide the "Lazy Load for Videos" Meta Box
function plt_hide_lazy_load_for_videos_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Lazy Load for Videos" meta box.
remove_meta_box('meta-box-lazyload-for-videos', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_lazy_load_for_videos_metaboxes', 20);