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

#3122
digitaliway
Participant

This did not work. can you please provide specific code or update plugin to have capability?

I have a role called: page-editor

I added this exact code to the functions file and QUICKEDIT and PERMALINK EDIT still remain.

if (current_user_can(‘page-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;
}