-
Home
-
Image Optimization by Optimole – Lazy Load, CDN, Convert WebP & AVIF, Optimize Images
- Tips
How to Hide the "Optimole" Admin Menu
function plt_hide_optimole_wp_menus() {
//Hide the "Optimole" menu.
remove_menu_page('optimole');
}
add_action('admin_menu', 'plt_hide_optimole_wp_menus', 100);
Where do I put this code?
How to Hide the "WordPress Guides/Tutorials" Dashboard Widget
function plt_hide_optimole_wp_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_optimole_wp_dashboard_widgets', 20);