Replies: 0
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.