August 24, 2015 at 5:13 pm
#15035
Syam Mohan
Keymaster
Hi Steve,
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.
Thanks
Syam