-
Home
-
Smush – Optimize, Compress and Lazy Load Images
- Tips
function plt_hide_wp_smushit_menus() {
//Hide "Smush".
remove_menu_page('smush');
//Hide "Smush → Dashboard".
remove_submenu_page('smush', 'smush');
//Hide "Smush → Bulk Smush".
remove_submenu_page('smush', 'smush-bulk');
//Hide "Smush → Directory Smush".
remove_submenu_page('smush', 'smush-directory');
//Hide "Smush → Lazy Load".
remove_submenu_page('smush', 'smush-lazy-load');
//Hide "Smush → CDN".
remove_submenu_page('smush', 'smush-cdn');
//Hide "Smush → Local WebP".
remove_submenu_page('smush', 'smush-webp');
//Hide "Smush → Integrations".
remove_submenu_page('smush', 'smush-integrations');
//Hide "Smush → Settings".
remove_submenu_page('smush', 'smush-settings');
//Hide "Smush → Tutorials".
remove_submenu_page('smush', 'smush-tutorials');
//Hide "Smush → Smush Pro".
remove_submenu_page('smush', 'smush-upgrade');
}
add_action('admin_menu', 'plt_hide_wp_smushit_menus', 11);
Where do I put this code?