• Start Here
  • Blog
    • Blogging
    • SEO
    • Themes
    • Plugins
    • Hosting
  • Tutorials
    • Create A Website
    • Start A Blog
    • WordPress SEO
    • Speed Up WordPress
    • WordPress Security
  • Tools
    • WordPress Hosting
    • Caching Plugins
    • Security Plugins
    • Comment Plugins
No Results
View All Results
GigaPress
  • Start Here
  • Blog
    • Blogging
    • SEO
    • Themes
    • Plugins
    • Hosting
  • Tutorials
    • Create A Website
    • Start A Blog
    • WordPress SEO
    • Speed Up WordPress
    • WordPress Security
  • Tools
    • WordPress Hosting
    • Caching Plugins
    • Security Plugins
    • Comment Plugins
No Results
View All Results
GigaPress

How To Allow Contributors To Upload Images In WordPress

Brad Merrill by Brad Merrill
0
How To Allow Contributors To Upload Images In WordPress
Share on FacebookShare on Twitter

If you have a multi-author WordPress site, you’ve probably noticed that users with the “contributor” role are unable to upload media.

That means your contributors can’t add images or videos to their own blog posts, which is inconvenient to say the least.

Fortunately, it’s pretty easy to customize user roles in WordPress.

In this tutorial, we’ll cover two ways to enable media uploads for contributors:

  1. Add a code snippet: If you’re comfortable editing your theme files, you can allow your contributors to upload media by pasting a simple function into your functions.php file.
  2. Use a WordPress plugin: If you’d rather not edit your site files, you can get the job done with a WordPress plugin.

How To Allow Contributors To Upload Images Without A Plugin

This method is great for people who feel comfortable editing their theme files, and who would prefer not to install yet another WordPress plugin.

Open up your current theme’s functions.php file, and add the following snippet:

//Allow Contributors to Upload Media
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');
     $contributor->add_cap('upload_files');
}

Note: I recommend using a child theme to avoid having your changes overwritten by a future theme update.

How To Allow Contributors To Upload Images With A Plugin

If you’d prefer to use a plugin, User Role Editor is for you.

User Role Editor

Install and activate the plugin, then go to Users > User Role Editor in your WordPress dashboard.

At the top of the page, select the Contributor role from the drop-down menu. Then check the box next to upload_files.

Click the Update button, and then your contributors will be able to upload media to your site.

As you can see, User Role Editor has lots of other options to help you manage your site’s user roles. You can learn more about WordPress user roles here.

If you have any questions, please feel free to leave them in the comments below!

Previous Post

WordPress User Roles: Everything You Need To Know

Next Post

How To Limit Login Attempts In WordPress

Brad Merrill

Brad Merrill

Brad Merrill is the CEO of Merrill Media and Editor in Chief of GigaPress.

Next Post
How To Limit Login Attempts In WordPress

How To Limit Login Attempts In WordPress

No Results
View All Results

Join The Community

Be the first to see the latest WordPress tips, tricks, tutorials, and reviews from GigaPress.

GigaPress is free and reader-supported. When you make a purchase through one of our links, we may receive a commission at no additional cost to you.

Essential Resources

How To Create A Website: Step-By-Step Beginner’s Guide
Tutorials

How To Create A Website: Step-By-Step Beginner’s Guide

December 9, 2020
How To Start A Successful Blog In 2021: The Definitive Guide
Blogging

How To Start A Successful Blog In 2021: The Definitive Guide

December 13, 2020
How To Speed Up Your WordPress Site: The Only Guide You Need
Tutorials

How To Speed Up Your WordPress Site: The Only Guide You Need

April 3, 2020
WordPress Security: The Complete Step-By-Step Guide
Security

WordPress Security: The Complete Step-By-Step Guide

August 13, 2019
WordPress SEO Tutorial: The Complete Guide To Higher Rankings
SEO

WordPress SEO Tutorial: The Complete Guide To Higher Rankings

July 19, 2019

Get The Newsletter

Join our newsletter to get the best WordPress tips and tutorials every week.
    GigaPress

    © 2021 GigaPress
    A Merrill Media Publication

    Site Links

    • Start Here
    • Tools
    • About
    • Contact
    • Privacy

    Follow Us

    No Results
    View All Results
    • Start Here
    • Blog
      • Blogging
      • SEO
      • Themes
      • Plugins
      • Hosting
    • Tutorials
      • Create A Website
      • Start A Blog
      • WordPress SEO
      • Speed Up WordPress
      • WordPress Security
    • Tools
      • WordPress Hosting
      • Caching Plugins
      • Security Plugins
      • Comment Plugins

    © 2021 GigaPress
    A Merrill Media Publication

    Welcome Back!

    Login to your account below

    Forgotten Password?

    Create New Account!

    Fill the forms bellow to register

    All fields are required. Log In

    Retrieve your password

    Please enter your username or email address to reset your password.

    Log In

    Session expired

    Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.

    >