Change WordPress user roles and capabilities Forums Bug Reports Not hiding the admin menü point from plugin “PublishPress Revisions” Reply To: Not hiding the admin menü point from plugin “PublishPress Revisions”

#8335
Vladimir
Keymaster

Hi,

Revisions plugin creates admin menu item with a ‘read’ capability, which is granted to any role with access to wp-admin.

It seems that small workaround may help you. Leave all Revisions admin menu items blocked for your role via “Admin menu” as you did and add to the active theme functions.php file this code:


add_filter('revisionary_add_menu', 'ure_revisionary_off', 10, 1 );
function ure_revisionary_off( $edit_any ) {
    return false;
}

It fully hides ‘Revisions’ menu for editor role in my test.