Description
Filters the required capability for allowing dashboard access. With default WP roles, it will be removed for “subscriber” role but allowed for all others.
Parameters
$capability
(string) (required) The capability required for allowing dashboard access (default: edit_posts).
Usage
add_filter( 'wpmem_adv_dashboard_capability', function( $capability ) { return 'manage_options'; });
Changelog
Introduced in version 1.2
Source
wpmem_adv_dashboard_capability
is located in includes/class-wp-members-advanced-options.php