• Hi, could you please add a filter to allow developers to modify the list of roles that users can select from when using the content permissions meta box? Right now it currently shows every role available, but for our use case we would like to limit those options to just a subset of the roles within WordPress.

    Line 165 of admin/class-meta-box-content-permissions.php in the meta_box() method could use something like:

    // Get roles and sort
    $_wp_roles = apply_filters( 'members_roles', $wp_roles->role_names, $post );
    asort( $_wp_roles );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add filter for roles in content permissions meta box’ is closed to new replies.