um_query_args_{$field}__filter

Hook type

Filter

Description

Change field's query for search at Members Directory

Parameters

$field_query

(array) Field query

Usage

<?php add_filter( 'um_query_args_{$field}__filter', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_query_args_{$field}__filter', 'my_query_args_filter', 10, 1 );
function my_query_args_filter( $field_query ) {
    // your code here
return $field_query;
}
?>

Change Log

Since: 2.0

Source

um_query_args_{$field}__filter is located in includes/core/um-filters-members.php::line 174