mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 13:13:33 +09:00
Merge pull request #74 from nickburne/master
Allows setting user tags fields as search filters
This commit is contained in:
@@ -1050,6 +1050,7 @@ class UM_Builtin {
|
||||
global $ultimatemember;
|
||||
|
||||
$fields_without_metakey = array('block','shortcode','spacing','divider','group');
|
||||
remove_filter('um_fields_without_metakey', 'um_user_tags_requires_no_metakey');
|
||||
$fields_without_metakey = apply_filters('um_fields_without_metakey', $fields_without_metakey );
|
||||
|
||||
if ( !$show_all ) {
|
||||
|
||||
@@ -76,6 +76,9 @@ class UM_Members {
|
||||
|
||||
if ( $ultimatemember->builtin->is_dropdown_field( $filter, $attrs ) ) {
|
||||
$type = 'select';
|
||||
} else if ( 'user_tags' == $attrs['type'] ) {
|
||||
$attrs['options'] = apply_filters('um_multiselect_options_user_tags', array(), $attrs);
|
||||
$type = 'select';
|
||||
} else {
|
||||
$type = 'text';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user