Skip to content

Instantly share code, notes, and snippets.

@pije76
Forked from plusplugins/filter.php
Created June 16, 2019 12:33
Show Gist options
  • Save pije76/7c94a3fc6d74a32f1b36eb13d06b0ed3 to your computer and use it in GitHub Desktop.
Save pije76/7c94a3fc6d74a32f1b36eb13d06b0ed3 to your computer and use it in GitHub Desktop.
Adding a custom field to Ultimate Members directory search options
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