Description
Filters the required capability for displaying the toolbar. With default WP roles, it will be removed for “subscriber” role, but displayed for all others.
Parameters
$capability
(string) (required) The capability required for displaying the toolbar (default: edit_posts).
Changelog
Introduced in version 1.2
Source
wpmem_adv_toolbar_capability is located in includes/class-wp-members-advanced-options.php
Usage
add_filter( 'wpmem_adv_toolbar_capability', 'my_toolbar_capability' ); function my_toolbar_capability( $capability ) { // Change the required capability for showing toolbar. $capability = 'manage_options'; return $capability; }
See a list of all filter and action hooks