Viewing 2 replies - 1 through 2 (of 2 total)
  • Umesh Kumar

    (@umeshsingla)

    Hi @giovanicrim,

    I can understand your concern in here, afraid that it can’t be done directly from the plugin.

    You’d need to add this piece of code in a custom plugin or theme function.php, this will remove the Bulk Smush page for any other user except site administrators.

    //Remove Smush admin page for other users
    add_action( '_admin_menu', 'remove_bulk_smush' );
    function remove_bulk_smush() {
    	global $wpsmushit_admin;
            //Remove Bulk Smush Page, if not Super Admin
    	if ( ! is_super_admin() ) {
    		remove_action( 'admin_menu', array( $wpsmushit_admin, 'screen' ) );
    	}
    }

    Hope that fixes the issue for you.

    Cheers, Umesh

    Thread Starter giovanicrim

    (@giovanicrim)

    Perfect! Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change WP Smush sub menu voice capability’ is closed to new replies.