Change WordPress user roles and capabilities › Forums › Bug Reports › editors unable to edit media metadata › Reply To: editors unable to edit media metadata
24/10/2016 at 14:12
#2900
Participant
Thanks. Does that code go in functions.php?
And would it be this, exactly?
add_filter('ure_restrict_edit_post_type', 'exclude_posts_from_edit_restrictions');
function exclude_posts_from_edit_restrictions($post_type) {
$restrict_it = true;
if (current_user_can('editor')) {
if ($post_type=='attachment') {
$restrict_it = false;
}
}
return $restrict_it;
}