From 3064126369b221588639e6213530eba4f42cfa0f Mon Sep 17 00:00:00 2001 From: shramee Date: Wed, 20 Jan 2016 15:24:28 +0530 Subject: [PATCH] Allowing usertags in search filters --- core/um-builtin.php | 1 + core/um-members.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/um-builtin.php b/core/um-builtin.php index 1d2183d9..3a3dd6e1 100644 --- a/core/um-builtin.php +++ b/core/um-builtin.php @@ -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 ) { diff --git a/core/um-members.php b/core/um-members.php index b4122a76..9be684ca 100644 --- a/core/um-members.php +++ b/core/um-members.php @@ -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'; }