WordPress: Allow Contributors To Upload Files

Written by in WordPress - Print This Post



Lot of contributors suffered from this problem. They can’t able to upload any kind of files through their dashboard. I also got lot of complaints regarding this. So just thought of sharing this.

Actually there are two ways to allow contributors to upload files. Either you can try a WordPress plugin (Recommended) or try some coding.

But personally I prefer the WordPress plugin method. Through which you can increase the capabilities of contributors.

A Contributor is somebody who can write and manage their posts but not publish them.

1. WordPress Plugin – Capability Manager

Capability Manager

Check Upload Files In Capabilities for Contributor | User role

#1. Install and activate Capability Manager Plugin.

#2. Go to Users | Capabilities.

#3. Select Capabilities for Contributor|User role.

#4. Check Upload Files and Save.

2. Paste the following Code in functions.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');
$contributor->add_cap('upload_files');
}

Just paste the above code snippet in your theme’s functions.php file and for thesis users, just copy and paste the code in custom_functions.php file.

First of all, make sure you take a backup of functions.php or custom_functions.php file before implementing this tutorial. Play it safe.

If you enjoyed this article, please consider sharing it! :)




HBB RSS
Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic. You will also get instant access to 100+ HBB Guides & Tutorials.
If you wish to subscribe here via Email, then kindly click here.


Connect with HBB on Facebook Easily




Editor-in-Chief and Owner of 20 Years Old Kiddo, Open Source Enthusiast, Tech Blogger, Striving Entrepreneur, and a Typical Engineering Student. Addicted to Blogging, Walking and Messing. Catch him on Facebook, Twitter and .


HBB has 551+ Awesome Contributors. [Join HBB].

HellBound Bloggers (HBB) is a part of Slashsquare Network.







26 Responses to “WordPress: Allow Contributors To Upload Files”

Leave a Reply


Comments Policy | Brand Your Comments | Do Follow Blog | Top Commentators Award


REFERENCE : 7 Tips To Be A Hero On Blog Commenting [HELPFUL]


Overall HellBound Bloggers (HBB) has 22,105 Genuine Comments and Yours Will Add More Value To It.




Previous Article:

Next Article:

  1. Awesome plugin, that save my lots of time, Thanks.

  2. Melody says:

    Another great resource I’ll have to bookmark for future reference! =)
    It’s probably also a good idea to suggest appropriate file sizes for uploading images onto your site.
    .-= Melody’s last blog…Don’t Worry, Design Happy! =-.

  3. Sourish says:

    nice plugin. good to moderate permissions
    .-= Sourish’s last blog…Google Buzz Extension Addons for Firefox and Chrome =-.

  4. Sandeep says:

    Hey Pradeep,
    Thanks for the post. I have tried some coding, but after seeing this post, im using this plugin :D
    .-= Sandeep’s last blog…5 Satisfactory Alternatives for Skype =-.

  5. Jack says:

    I also used to face this problem of attaching my file thanks For sharing this
    useful Plugins with all of us,It’ll definately save lot of time of all wordpress user.
    .-= Jack’s last blog…Telling The Story To Get Attention =-.

  6. I think that will be one great plug in. I will have to check the plug in.
    .-= chandan@work at home blog’s last blog…7 Best Work At Home Marketplace For Freelancer =-.

  7. Go4webapps says:

    great plug-in,,, gonna use it
    .-= Go4webapps’s last blog…MyTweeple – Twitter Application to Oraganize Friends and Followers =-.

  8. Bürostühle says:

    Thanks for sharing this post & I am working on it from last many months & I trying to develop code for it.

  9. Two questin:

    During the latest rash of hacked blog, several concluded it wa because of a backdoor open due to allowing contributors in such a manner; any thoughts on this?

    Is there a readme file in the package showing the code you display here?
    .-= Dennis Edell | Direct Sales Marketing's last blog…Warning: 8 Posts Coming Back to Back =-.

  10. Samuel says:

    Nice post bro thanks alot!

  11. mobile phone says:

    Why are people so afraid of coding stuff their self?

  12. Going to try this out, however i feel that wordpress needs to add such features in the coming updates, the user management panel/moderator panel etc. should be given more importance.

  13. Tech Sputter says:

    Really a good plugin man….i think it simplifies our time :-) :-) :-)
    .-= Tech Sputter's last blog…Fascinating changes to Google Search Engine look… =-.

  14. Great plugin, wordpress rocks… thanks for sharing
    .-= UK webmaster forum 's last blog…ExpensiveCologne.com $35 – Adsense CPC $2.09 – Exact Searches 720 =-.

  15. I think the role manager plugin also does the same thing and not only for contributor but for each role like author, editor, administrator, subscriber
    .-= Shiva | Web Magazine’s last blog…Google Mayday Update leaves Webmasters in a Frenzy =-.

  16. Awesome plugin ….bro ..
    Thanks for sharing :)

  17. Robin says:

    i love this plugin. successfully transformed my blog as multi author blog. :)

    - Robin
    .-= Robin’s last blog…Access Facebook Mobile Without Data Charges =-.

  18. How are you responding the the May Day update from Google?

  19. Pradeep. Thanks for heads up. I was using a similar plugin called role manager for my blog and problem was that it wasn’t updated since long so had compatibility issues. This plugin is almost similar in functionality but its compatible with 3.0.

  20. Vincenzo @ dementor costumes says:

    This plugin is really amazing. It serves not only as contributor but also serves as author, editor, administrator, subscriber as well.Thanks for sharing this valuable information.

  21. aatif says:

    i am using caps maneger plugin it does all .

  22. Pranav Jain says:

    Really a useful plugin!

  23. This plugin is rocking!!

  24. Dustin says:

    Excellent post. Deff more helpful than the codex for this specific need.

    Cheer!

  25. srikanth says:

    wow! will try this badly needed this and thanx a ton man,,,g8 job……………….

    i need a pluign for visitors to be allowed to download the uploads any help…pls

  26. Sharma says:

    Using "Capability Manager" I have allowed contributors to upload media to the media library of my wordpress website



Subscribe without commenting




COPYRIGHT © 2011 SLASHSQUARE NETWORK. REPRODUCTION WITHOUT EXPLICIT PERMISSION IS PROHIBITED. ALL RIGHTS RESERVED.

Slashsquare
Mobile Version · About Us · Contact Us · Subscription · Advertise · Review · Write For Us · Archives · Privacy Policy · Disclaimer
Loading...