mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
Merge pull request #1190 from ultimatemember/feature/sorting_data_type
Sorting data type and order
This commit is contained in:
@@ -24,6 +24,27 @@ $fields = array(
|
||||
'value' => UM()->query()->get_meta_value( '_um_sortby_custom', null, 'na' ),
|
||||
'conditional' => array( '_um_sortby', '=', 'other' ),
|
||||
),
|
||||
array(
|
||||
'id' => '_um_sortby_custom_type',
|
||||
'type' => 'select',
|
||||
'label' => __( 'Data type', 'ultimate-member' ),
|
||||
'tooltip' => __( 'To correct sort by a custom field, choose a data type', 'ultimate-member' ),
|
||||
'value' => UM()->query()->get_meta_value( '_um_sortby_custom_type', null, 'CHAR' ),
|
||||
'options' => UM()->member_directory()->sort_data_types,
|
||||
'conditional' => array( '_um_sortby', '=', 'other' ),
|
||||
),
|
||||
array(
|
||||
'id' => '_um_sortby_custom_order',
|
||||
'type' => 'select',
|
||||
'label' => __( 'Order', 'ultimate-member' ),
|
||||
'tooltip' => __( 'To correct sort by a custom field, choose an order', 'ultimate-member' ),
|
||||
'value' => UM()->query()->get_meta_value( '_um_sortby_custom_order', null, 'ASC' ),
|
||||
'options' => array(
|
||||
'ASC' => __( 'ASC', 'ultimate-member' ),
|
||||
'DESC' => __( 'DESC', 'ultimate-member' ),
|
||||
),
|
||||
'conditional' => array( '_um_sortby', '=', 'other' ),
|
||||
),
|
||||
array(
|
||||
'id' => '_um_sortby_custom_label',
|
||||
'type' => 'text',
|
||||
|
||||
Reference in New Issue
Block a user