Filter: um_blacklist_fields_hook

apply_filters( 'um_blacklist_fields_hook', $blacklist_fields ) → {array}

Filters change metakeys in the blacklist.

Parameters:
Name Type Description
$blacklist_fields array

Blacklisted usermeta keys.

Since:
  • 2.7.0
Source:
Returns:

Blacklisted usermeta keys.

Type
array
Example

Change array of metakeys in the blacklist. Adding 'user_email' metakey.

function my_um_blacklist_fields_hook( $blacklist_fields ) {
    $blacklist_fields[] = 'user_email';
    return $blacklist_fields;
}
add_filter( 'um_blacklist_fields_hook', 'my_um_blacklist_fields_hook' );