The Pro version of the PublishPress Capabilities plugin allows to hide any element inside the WordPress admin area. If you can find the CSS class or ID, then you can hide that element.
In this example, we will hide the search box on post screen. Looking at the code for this search box, it has a class of
- Go to “Capabilities” and then “Admin Features”.
- Choose the user role for which you want to hide the search box.
- Give a Label to this setting.
- Enter the class as
- Click “Add”.
- When a user in this role visits the Posts screen, the search box will be hidden for them: