whyisjake

ninnypants

Mar 9th, 2010
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. if ( current_user_can('contributor') && !current_user_can('upload_files') ){
  2.     add_action('admin_init', 'allow_contributor_uploads');
  3. }
  4. function allow_contributor_uploads() {
  5.     $contributor = get_role('contributor');
  6.     $contributor->add_cap('upload_files');
  7. }
Add Comment
Please, Sign In to add comment