How to Allow Media file upload access for contributor users role

Shortlink:

contributorToday i will teach you, How to Allow Media file upload access for contributor users role, we know WordPress default system is contributor users role can’t upload any media files. if you want to allow upload media files for contributor users role, then you can use two way.

Way One ( Using Plugin ) :

If you don’t have any coding knowledge, and if you fill any problem then you can use my plugin. i have developed plugin. plugin name is “Contributor Media Files Upload Access” if you want then you can use this plugin, this plugin is free. you can download this plugin from WordPress official website WordPress.org.  So you can download here ‘Contributor Media Files Upload Access‘.

Way Two ( Without Plugin ) :

If you have coding knowledge then you can do coding. just open your functions.php file in your current active theme folder. then you can copy and past below code in your functions.php page.

//Media file upload access for contributor

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

then save your theme. Now you can check contributor users role now can access media files upload. if you need any help or if you have face any problem this tutorial or if you can’t understand this article then you can comment below comment box. then you can try to help you for understanding this article.

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!




%d bloggers like this: