Home › Forums › User Role Editor Pro › Role needs to permit View and Use of Library Media – But NOT Add New Media › Reply To: Role needs to permit View and Use of Library Media – But NOT Add New Media
To remove the ‘Add New’ button, you will have to remove the ‘upload_files’ capability. But that will disable the whole media library functionality, so you don’t want to do that.
The code I sent you will not remove this button. But it will still block users from uploading files, they will see an error message when they try to upload.
When you say its not working, what does exactly it mean? If you meant its not removing the button, that is the right behavior. It will not remove the button.