mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- fixed integration with User Tags extension (remove some hardcode, changed to hooks);
- fixed 2.0 upgrades for User roles meta data; - clear/review code;
This commit is contained in:
@@ -79,15 +79,8 @@ if ( ! class_exists( 'Members' ) ) {
|
||||
// additional filter for search field attributes
|
||||
$attrs = apply_filters("um_search_field_{$filter}", $attrs);
|
||||
|
||||
if ( UM()->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);
|
||||
$attrs['custom'] = 1;
|
||||
$type = 'select';
|
||||
} else {
|
||||
$type = 'text';
|
||||
}
|
||||
$type = UM()->builtin()->is_dropdown_field( $filter, $attrs ) ? 'select' : 'text';
|
||||
$type = apply_filters( 'um_search_field_type', $type, $attrs );
|
||||
|
||||
// filter all search fields
|
||||
$attrs = apply_filters( 'um_search_fields', $attrs );
|
||||
|
||||
Reference in New Issue
Block a user