Last active
August 29, 2015 14:13
-
-
Save tarikcayir/c57531f50a13bbb04657 to your computer and use it in GitHub Desktop.
Add to functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment