-
-
Save pije76/7c94a3fc6d74a32f1b36eb13d06b0ed3 to your computer and use it in GitHub Desktop.
Adding a custom field to Ultimate Members directory search options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('um_admin_custom_search_filters','add_my_custom_search_fields', 10, 1); | |
function add_my_custom_search_fields($fields) { | |
$fields['field_meta_key'] = array('title' => 'Enter field title'); // replace 'field_meta_key' with your field meta key | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment