- fixed sorting by User Tags field;

This commit is contained in:
nikitozzzzzzz
2018-07-06 01:07:06 +03:00
parent b1ca9d6ef0
commit 96731c6a0d
4 changed files with 17 additions and 5 deletions
+8 -1
View File
@@ -146,7 +146,14 @@ function um_add_search_to_query( $query_args, $args ){
'relation' => 'OR',
);
if ( $filter_data['attrs']['type'] == 'multiselect' || $filter_data['attrs']['type'] == 'radio' || $filter_data['attrs']['type'] == 'checkbox' ) {
$types = apply_filters( 'um_search_field_types', array(
'multiselect',
'radio',
'checkbox'
) );
if ( in_array( $filter_data['attrs']['type'], $types ) ) {
$field_query = array_merge( $field_query, array(
array(
'key' => $field,