Created
August 23, 2016 08:10
-
-
Save UmeshSingla/7af107d021db00473279fb878b95175f to your computer and use it in GitHub Desktop.
WP Smush: Hide Bulk Smush page for different User Roles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function remove_bulk_smush_page() { | |
if( is_super_admin() ) { | |
return; | |
} | |
remove_submenu_page( 'upload.php', 'wp-smush-bulk' ); | |
} | |
add_action( 'admin_menu', 'remove_bulk_smush_page', 99 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment