inviting people to blog and editing roles

Is it possible to edit roles in my blog in sharing section? I want contributor role WITH uploading capability. Goal is that people I invite to write my blog can add their own images, but no publishing rights. The administer will review it before publishing.

Topic sharing blog Wordpress

Category Web


Yes there are beautiful plugin for you, Adminimize and User role editor where you can edit the user's role as per your choice.


By the below code you can give contributor to upload image.

function rwc_allow_contributor_uploads() {
    $contributor = get_role('contributor');
    $contributor->add_cap('upload_files');
}
add_action('admin_init', 'rwc_allow_contributor_uploads');`

And admin will review the post and then publish it.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.