Filter: um_secure_register_form_banned_capabilities

apply_filters( 'um_secure_register_form_banned_capabilities', $capabilities ) → {array}

Filters the banned capabilities for UM Register forms.

Parameters:
Name Type Description
$capabilities array

WordPress Administrative Capabilities.

Since:
  • 2.6.8
Source:
Returns:

Banned admin capabilities.

Type
array
Example

Added `read` capability as banned.

function my_banned_capabilities( $capabilities ) {
    $capabilities[] = 'read';
    return $capabilities;
}
add_filter( 'um_secure_register_form_banned_capabilities', 'my_banned_capabilities' );