Prohibit authors attachments deletion

Suppose you wish to prohibit WordPress attachments deletion for your authors. WordPress manages access to the Media Library items (attachments) using ‘posts’ capabilities set. Yes, the key capability to access the ‘Media Library’ is ‘upload_files’, but in order to edit uploaded image attributes a user needs ‘edit_posts’ capability, in order to delete uploaded video a user needs ‘delete_posts’ capability, etc. So there is no way to prohibit attachments deletion for users who may (and should) delete posts with WordPress default Media Library permissions model.

Pro version of User Role Editor offers a workaround – ‘Force custom post types to use their own capabilities’ option: Read more Prohibit authors attachments deletion

Remove admin bar from WordPress backend

How to remove admin bar from WordPress backend for the selected role?

Starting from version 4.21 User Role Editor allows you to create your own options for the roles and link the custom PHP code to them.
This feature realized via ure_role_additional_options filter.
Additional option ‘Hide admin bar’ included into User Role Editor by default works for the front-end only. Read more Remove admin bar from WordPress backend

User Role Editor Pro version 4.21.1

User Role Editor Pro version 4.21.1 is available for download and automatic updates since December 17th, 2015.

Changes List

  • Core version: 4.21.1
  • Fix: ‘Update’ button did not work at User’s Capabilities page due to confirmation dialog call error.
  • Fix: post custom fields ‘post_access_error_action’, ‘post_access_error_message’ are hidden now from the users without ‘ure_view_posts_access’ capability.
  • Update: German translation