Change WordPress user roles and capabilities Forums How to or FAQ quick edit and permalink disable for role Reply To: quick edit and permalink disable for role

#3123
Vladimir
Keymaster

This code is still actual to remove ‘Quick Edit’ link under a post line at the posts list. I re-tested it with theme 2017 functions.php, I just used the ‘editor’ role instead yours:


if (current_user_can('editor')) {
    add_filter('post_row_actions','remove_quick_edit',10,1);
}
function remove_quick_edit( $actions ) {
    
    unset($actions['inline hide-if-no-js']);
    
    return $actions;    
}

Check if you inserted code to the active theme’s functions.php, if your test user really has ‘page-editor’ role.

I’m ready to look at your site on-line if you send URL and admin login credentials to support [at-sign] role-editor.com