mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 22:54:03 +09:00
Fix search users by tag
This commit is contained in:
+5
-1
@@ -78,11 +78,15 @@ class UM_Members {
|
||||
$type = 'select';
|
||||
} else if ( 'user_tags' == $attrs['type'] ) {
|
||||
$attrs['options'] = apply_filters('um_multiselect_options_user_tags', array(), $attrs);
|
||||
$attrs['custom'] = 1;
|
||||
$type = 'select';
|
||||
} else {
|
||||
$type = 'text';
|
||||
}
|
||||
|
||||
// filter all search fields
|
||||
$attrs = apply_filters( 'um_search_fields', $attrs );
|
||||
|
||||
switch( $type ) {
|
||||
|
||||
case 'select':
|
||||
@@ -143,7 +147,7 @@ class UM_Members {
|
||||
$query_args = array();
|
||||
$query_args = apply_filters( 'um_prepare_user_query_args', $query_args, $args );
|
||||
$users = new WP_User_Query( $query_args );
|
||||
|
||||
|
||||
// number of profiles for mobile
|
||||
if ( $ultimatemember->mobile->isMobile() && isset( $profiles_per_page_mobile ) )
|
||||
$profiles_per_page = $profiles_per_page_mobile;
|
||||
|
||||
Reference in New Issue
Block a user