Make Money Online Queries? Struggling To Get Traffic To Your Blog? Sign Up On (HBB) Forum Now!

WordPress: Allow Contributors To Upload Files

CONNECT WITH HBB ON SOCIAL MEDIA

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! 🙂



By

CEO and Founder of Slashsquare, Indian Blog Network and Web Consulting Media. HBB is a part of Slashsquare Network. I'm a Tech Blogger, Striving Entrepreneur, Atheist, and Proud Indian. Catch me on Facebook and Twitter.

  • My Website

Want to discuss your queries and interact with experts? You can connect with HellBound Bloggers (HBB) Facebook group for free!

Join HellBound Bloggers (HBB) and get Instant Updates. We'll also notify you with Great Deals, Discounts and other Interesting Tips. We won't SPAM or SHARE your Email Address with anyone.

Thank you for reading! We welcome and appreciate your comments, but at the same time, make sure you are adding something valuable to this article. If you have any serious queries, suggestions or anything related to this article, feel free to share them, we really appreciate that.

But, if your blog comments are a random "Thank you", "Useful Post", or anything that doesn't actually upscale the article, then we'll be removing them and it won't be appeared below. Thanks for understanding and thanks for connecting with us. If you want to give us any feedback or report any errors, you can kindly contact us and we'll revert back soon.

  • Comments
  • Facebook Comments