wpcrm_system_user_role_options
The wpcrm_system_user_role_options filter returns the access level user roles used in the WP-CRM System > Dashboard > Settings tab. By default, the filter returns an empty array.
The filter is used to add the Administrator, Editor, Author, Contributor, and Subscriber user roles.>
add_filter( 'wpcrm_system_user_role_options', 'wpcrm_system_select_user_roles', 10 );
function wpcrm_system_select_user_roles( $array ){
$array = array(
'manage_options' => __('Administrator', 'wp-crm-system'),
'edit_pages' => __('Editor', 'wp-crm-system'),
'publish_posts' => __('Author', 'wp-crm-system'),
'edit_posts' => __('Contributor', 'wp-crm-system'),
'read' => __('Subscriber', 'wp-crm-system')
);
return $array;
}
