Filter: um_member_directory_core_search_fields

apply_filters( 'um_member_directory_core_search_fields', $core_search_fields ) → {array}

Filters the WordPress core searching fields in wp_users query for UM Member directory query.

Parameters:
Name Type Description
$core_search_fields array

Core search fields in wp_users query.

Since:
  • 2.6.10
Source:
Returns:

Core search fields in wp_users query.

Type
array
Example

Extends or remove wp_users core search fields.

function my_um_member_directory_core_search_fields( $core_search_fields ) {
    $core_search_fields = array_flip( $core_search_fields );
    unset( $core_search_fields['user_email'] );
    $core_search_fields = array_flip( $core_search_fields );
    return $core_search_fields;
}
add_filter( 'um_member_directory_core_search_fields', 'my_um_member_directory_core_search_fields' );