I have the following two requirements:
-
I want to allow users with the contributor role to upload media (images mostly) in their posts and preferably they shouldn’t be able to delete existing ones before submitting it for review.
-
I want to make sure once an article is published that it can’t be edited by the contributor (the writer of the plugin with user role contributor) or if it can be edited the newer version isn’t updated before going through a submission process.
I was recommended the Role Scoper plugin but I couldn’t figure out how to do it. Any information about any other plugin or how to do this in Role Scoper would be great.
You can do all of this using the User Role Editor plugin. I normally tend to avoid answering questions by linking directly to a plugin but in this case, what you need comes in this package.
For image upload option to contributors
Add this code in your current theme’s
functions.php