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


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')) {
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]