Friday, August 21, 2020

WordPress Allow Contributors To Upload Files

WordPress Allow Contributors To Upload Files Make Money Online Queries? Struggling To Get Traffic To Your Blog? Sign Up On (HBB) Forum Now!WordPress: Allow Contributors To Upload FilesUpdated On 23/04/2011Author : Pradeep KumarTopic : WordPressShort URL : http://hbb.me/Y7oIK9 CONNECT WITH HBB ON SOCIAL MEDIA Follow @HellBoundBlogLot of contributors suffered from this problem. They cant 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 ManagerCheck Upload Files In Capabilities for Contributor | User role#1. Install and activate Capability Manager Plugin.#2. Go to Users | Capabili ties.#3. Select Capabilities for Contributor|User role.#4. Check Upload Files and Save.2. Paste the following Code in functions.phpif ( current_user_can('contributor') function allow_contributor_uploads() { $contributor = get_role('contributor'); $contributor->add_cap('upload_files'); }Just paste the above code snippet in your themes 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! ??READLeverage Browser Caching To Improve Site Speed

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.