Event Contributor role can’t upload featured image
-
I am having a problem with the event contributor role. I can’t get it to allow upload of featured images.
I’ve tried this code with a regular contributor role and it allows the contributor to upload images, but I can’t get it to work for the event contributor.
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'); }
I tried changing contributor to eventcontributor, but that doesn’t work. I see no option to upload the featured image.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Event Contributor role can’t upload featured image’ is closed to new replies.