Access is a WordPress plugin that lets you add custom roles and control their privileges.
Access User Guides include detailed documentation for controlling what actions different roles and users can do on content and what WordPress admin screens users can access.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 286 through 300 (of 340 total)
Problem: I have created a custom role with Access. I would like to choose a User in that custom role, when selecting the author of a post. It turns out that none of the Users in this custom role appear in the author dropdown options. What should I do to add and enable those author select options?
Solution: Please add a custom code snippet to your site in order to add these Users to the select author dropdown field:
function wpdocs_add_members_to_dropdown( $query_args, $r ) {
$query_args['role'] = array('member');
// Unset the 'who' as this defaults to the 'author' role
unset( $query_args['who'] );
return $query_args;
}
add_filter( 'wp_dropdown_users_args', 'wpdocs_add_members_to_dropdown', 10, 2 );