acfcs_user_cap()

Description

With this filter you can change the default user cap to access admin pages. Default this is set to 'manage_options'.

Usage

  1. function acfcs_override_user_cap($user_cap) {
  2.     return 'edit_others_posts';
  3. }
  4. add_filter( 'acfcs_user_cap', 'acfcs_override_user_cap' );

Or you can use an anonymous function.

  1. add_filter( 'acfcs_user_cap', function() {
  2.     return 'edit_others_posts';
  3. } );

Used in

Since

1.5.0