Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- 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');
- }
- ?>
Add Comment
Please, Sign In to add comment