um_general_search_custom_fields
Hook type
Filter
Description
Add or exclude fields that the member directory general search line uses to search members.
Parameters
$custom_fields (array) Fields involved in searching.
Usage
add_filter( 'um_general_search_custom_fields', 'function_name', 10, 1 );
Examples
function custom_um_general_search_custom_fields( $custom_fields ) { // your code here return $custom_fields; } add_filter( 'um_general_search_custom_fields', 'custom_um_general_search_custom_fields', 10, 1 );
Change Log
Since: 2.3.2
Source
File includes/core/class-member-directory.php
| View on GitHub