apply_filters( 'um_prepare_user_results_array', $user_ids, $query_args ) → {array}
Filters the member directory query result.
Parameters:
Name | Type | Description |
---|---|---|
$user_ids |
array | Members Query Result. |
$query_args |
array | Query arguments. |
- Since:
- 2.0
- Source:
Returns:
Query result.
- Type
- array
Example
function my_custom_um_prepare_user_results_array( $user_ids, $query_args ) {
$user_ids = array_diff( $user_ids, array( 10, 12 ) );
return $user_ids;
}
add_filter( 'um_prepare_user_results_array', 'my_custom_um_prepare_user_results_array', 10, 2 );