How to disable Media Library uploads for non-Admin users?
Here are 2 methods to disable all uploading for users that are not administrators: Method 1: Remove the upload_files capability from the roles you do not want to be able to upload. e.g. removing it from author role: $role = get_role( ‘author’ ); $role->remove_cap( ‘upload_files’ ); This is saved to the database so it should … Read more