How to allow contributors to upload images in WordPress

In this small guide, you will learn about How to allow contributors to upload images in WordPress or how to enable uploading files option for contributor roles.

Method 1 : by writing code manually in function.php file

Just paste the following code given below into your functions.php file, which can be located in : Appearance -> Theme Editor -> function.php

if ( current_user_can('contributor') && !current_user_can('upload_files') )
    add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
    $contributor = get_role('contributor');

Now, the upload option will be visible to the contributors, if not then ask your contributor to re-login to the dashboard.

Method 2 : Using Plugin

User Role Editor WordPress plugin allows you to change user roles and capabilities very easy. Just turn on check boxes of capabilities you want to enable for the selected role and click “Update” button to save. That’s it.

Add new roles , customize capabilities, Unnecessary self-made role can be deleted if there are no users whom such role is assigned. Role assigned every new created user by default may be changed too. Capabilities could be assigned on per user basis. Multiple roles could be assigned to user simultaneously.
You can add new capabilities and remove unnecessary capabilities which could be left from uninstalled plugins.

Follow the below steps to configure contributor capabilities

  1. Select contributor option from the drop-down.
  2. Select Show capabilities in human readable form
  3. Click on General from the Group column on the left side of the screen.
  4. Check the Upload files capability
  5. Now Click the Update button to save it
Enable Upload Files option for Contributors

You can find more information about “User Role Editor” plugin at this page. Thank you for Reading. Make sure to give your feedback in the comment section

Leave a Comment

Your email address will not be published. Required fields are marked *