How to Hide the Quick Edit Button in WordPress

This week we talked with a PublishPress user who wanted to hide “Quick Edit” for some user roles on their website.

For most people, the “Quick Edit” button is not a problem, because the users probably also have access to the “Edit” button. 

However, in some situations, the site owners don't want their users to see the “Quick Edit” button. For example, if you restrict your users from editing the permalink, you need to remove this option from the main post editing screen and also the “Quick Edit” area.

If you browse around the internet, you will find ways to hide “Quick Edit” by inserting some code into your functions.php. Fortunately, you can also do it easily with the PublishPress Plugins.


Hide the Quick Edit Button With PublishPress Capabilities Pro

One way to hide the “Quick Edit” button is with the Admin Features option in PublishPress Capabilities Pro.

  • Go to “Capabilities”, then “Admin Features”.
  • In the top-left corner, choose the user role that you want to edit.
  • Go to the “Hide CSS Element” area.
  • Choose “Quick Edit” for the label.
  • Enter .button-link.editinline for the ID.
  • Click “Add” and then “Save.
Hiding the Quick Edit button with PublishPress Capabilities Pro

When a user in the role you've selected goes to edit a post, they will no longer see the “Quick Edit” link, as in the screenshot below:

Quick Edit button hidden with PublishPress Capabilities Pro

Hide the Quick Edit Button With PublishPress Permissions Pro

Hiding the “Quick Edit” button is straightforward if you are using the PublishPress Permissions Pro plugin. This is because Permissions has advanced editing controls and “Quick Edit” needs to be disabled because if often provides a bypass around those controls.

After installing PublishPress Permissions Pro, this plugin will hide the “Quick Edit” button for non-admin users. 

For example, the image below shows when a user in the “Author” role tries to visit the “Posts” menu. As you can see, there is a blank space between “Edit” and “View”.

PublishPress Permissions Pro and Quick Edit hidden

Because automatically PublishPress Permissions Pro will hide the quick edit button for other roles, you might want to change that behavior and show them for a specific role.

You can achieve this by using a plugin that can edit roles and capabilities, such as PublishPress Capabilities

  • After you install PublishPress Capabilities, go to the “Capabilities” menu link.
  • In the top-left corner, choose the user role that you want to edit.
  • Click the “PublishPress Permissions” tab.
  • Check the “pp administer content” option box.
PublishPress Permissions Pro and Quick Edit showing

After you add a checkmark and click “Save”, the “Quick Edit” button will appear for that role. The image below shows when a user in the “Author” role tries to visit the “Posts” menu after you give them the “pp administer content” capability.

PublishPress Permissions Pro and Quick Edit visible

More with PublishPress Permissions Pro

PublishPress Permissions Pro has a wide range of advanced options such as hiding other users' posts or allowing users to see specific media files. You can read more about all the possibilities by visiting the PublishPress Permissions Pro page.

  • Riza Maulana Ardiyanto

    Riza Maulana Ardiyanto, based in Kudus, Indonesia, is a dedicated support specialist at PublishPress. Outside of work, he’s an enthusiastic mobile gamer, always eager to explore new gaming experiences and challenges.

    View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *