WordPress Tips: Allow Contributors to Upload Files


Sponsored Links




If you WordPress site, have contributors users, there are some limitation. The big problem is your contributors can’t upload files on your WordPress site. The solutions of this problem is really simple. We need to add some functions in your current theme.

Allow Contributors to Upload Files - Nicole Scherzinger

Allow Contributors to Upload Files - Nicole Scherzinger

He we go what you should do. Open functions.php and write down this code

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');
}

This code original created by Ryan Margani, and shared by WP Cookies and WP Recipes. I hope our Today WordPress tips useful on you.

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

WordPress Tips: Allow Contributors to Upload Files / WordPress

Daily The Best WordPress Tricks and WordPress Tips to make your WordPress nice Read More

WordPress: Allow Contributors To Upload Files

Actually there are two ways to allow contributors to upload files. Either you can try a WordPress plugin Are You Tired Of Writing? 7 Tips To Overcome That! in Read More

Allowing Wordpress Contributors to upload files « « SoulSizzle

When managing a multi-user WordPress setup, any post by a user with the Contributor class will be held for editing/moderation by an editor or administrator before it Read More

How to allow contributors to upload images files in Wordpress

Blogging Tips; Blogging Contest; Reviews. TOP 5; Top 10; Starting Up To Allow contributors to upload images/files in wordpress : You need to put this code into functions.php of Read More

How to Let Contributors Upload Photos in Wordpress | eHow.com

How to Let Contributors Upload Photos in Wordpress. To allow Contributors to upload images, you much check the "upload_files" box, and save Tips & Warnings Read More


5 Responses to WordPress Tips: Allow Contributors to Upload Files

  1. Pingback: Tweets that mention How to Allow Contributors to Upload Files in Wordpress # WordPress Tricks & Tips -- Topsy.com

  2. Pingback: wp-popular.com » Blog Archive » How to Allow Contributors to Upload Files in Wordpress

  3. Now thats a neat trick – thanks, really useful

  4. Lemont says:

    I was wondering where do I need to add this code in the functions.php and how does it work. When I try to change the avatar on my site from an uploaded image to another it doesn’t change. I get an error on page. Is their any help out there. I’m using p2 automatic theme. Thanks

  5. Pingback: Tiny Tips to Secure your Plugins | WordPress News Wire

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>