Description
With this filter you can change the default user cap to access admin pages. Default this is set to 'manage_options'.
Usage
function acfcs_override_user_cap($user_cap) {
return 'edit_others_posts';
}
add_filter( 'acfcs_user_cap', 'acfcs_override_user_cap' );
Or you can use an anonymous function.
add_filter( 'acfcs_user_cap', function() {
return 'edit_others_posts';
} );
Used in
- ACF_City_Selector.php - line 372
- ACF_City_Selector.php - line 373
- ACF_City_Selector.php - line 374
- ACF_City_Selector.php - line 375
- ACF_City_Selector.php - line 378
- ACF_City_Selector.php - line 381
- ACF_City_Selector.php - line 382
- admin/acfcs-countries.php - line 7
- admin/acfcs-dashboard.php - line 7
- admin/acfcs-info.php - line 7
- admin/acfcs-preview.php - line 7
- admin/acfcs-search.php - line 7
- admin/acfcs-settings.php - line 7
Since
1.5.0