mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- added option to expand by default member directory filters bar;
This commit is contained in:
@@ -93,6 +93,14 @@ global $post_id; ?>
|
||||
'add_text' => __( 'Add New Custom Field', 'ultimate-member' ),
|
||||
'show_default_number' => 1,
|
||||
),
|
||||
array(
|
||||
'id' => '_um_filters_expanded',
|
||||
'type' => 'checkbox',
|
||||
'label' => __( 'Expand the filter bar by default', 'ultimate-member' ),
|
||||
'tooltip' => __( 'If turned on, filters bar will be visible after a page loading and can be collapsed', 'ultimate-member' ),
|
||||
'value' => UM()->query()->get_meta_value( '_um_filters_expanded' ),
|
||||
'conditional' => array( '_um_filters', '=', 1 )
|
||||
),
|
||||
array(
|
||||
'id' => '_um_search_filters',
|
||||
'type' => 'md_default_filters',
|
||||
|
||||
@@ -168,7 +168,8 @@ if ( ! class_exists( 'um\Config' ) ) {
|
||||
'_um_filters' => 0,
|
||||
'_um_roles_can_filter' => array(),
|
||||
'_um_search_fields' => array(),
|
||||
'_um_search_filters' => '',
|
||||
'_um_filters_expanded' => 0,
|
||||
'_um_search_filters' => array(),
|
||||
|
||||
'_um_must_search' => 0,
|
||||
'_um_max_users' => '',
|
||||
|
||||
Reference in New Issue
Block a user