Block permalink edit button

Is it possible to block permalink edit button for the selected role?

Block permalink edit button
Block permalink edit button

The answer is “Yes”.

This code removes permalink “Edit” button for the ‘author’ role. Replace role ID with your own and insert this code into your active theme functions.php file or setup it as the must-use plugin:

Share