Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'admin_init', function() {
- if ( current_user_can('subscriber') && !current_user_can('upload_files') && ! is_admin() ) {
- $subscriber = get_role('subscriber');
- $subscriber->add_cap('upload_files');
- }
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement