mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
- exclude fields for default usermeta table
This commit is contained in:
@@ -1187,6 +1187,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
|
||||
delete_post_meta( $post_id, '_um_tagline_fields' );
|
||||
delete_post_meta( $post_id, '_um_reveal_fields' );
|
||||
delete_post_meta( $post_id, '_um_search_fields' );
|
||||
delete_post_meta( $post_id, '_um_search_exclude_fields' );
|
||||
delete_post_meta( $post_id, '_um_roles_can_search' );
|
||||
delete_post_meta( $post_id, '_um_roles_can_filter' );
|
||||
delete_post_meta( $post_id, '_um_show_these_users' );
|
||||
|
||||
@@ -10,8 +10,9 @@ $_um_roles_search_value = empty( $_um_roles_search_value ) ? array() : $_um_role
|
||||
$_um_roles_filter_value = get_post_meta( $post_id, '_um_roles_can_filter', true );
|
||||
$_um_roles_filter_value = empty( $_um_roles_filter_value ) ? array() : $_um_roles_filter_value;
|
||||
|
||||
$_um_search_fields = get_post_meta( $post_id, '_um_search_fields', true );
|
||||
$_um_search_filters = get_post_meta( $post_id, '_um_search_filters', true ); ?>
|
||||
$_um_search_exclude_fields = get_post_meta( $post_id, '_um_search_exclude_fields', true );
|
||||
$_um_search_fields = get_post_meta( $post_id, '_um_search_fields', true );
|
||||
$_um_search_filters = get_post_meta( $post_id, '_um_search_filters', true ); ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
@@ -38,6 +39,17 @@ $_um_search_filters = get_post_meta( $post_id, '_um_search_filters', true ); ?>
|
||||
'columns' => 3,
|
||||
'conditional' => array( '_um_search', '=', 1 ),
|
||||
),
|
||||
array(
|
||||
'id' => '_um_search_exclude_fields',
|
||||
'type' => 'multi_selects',
|
||||
'label' => __( 'Choose fields to exclude from search', 'ultimate-member' ),
|
||||
'value' => $_um_search_exclude_fields,
|
||||
'conditional' => array( '_um_filters', '=', 1 ),
|
||||
'options' => UM()->member_directory()->filter_fields,
|
||||
'add_text' => __( 'Add New Custom Field to Exclude', 'ultimate-member' ),
|
||||
'show_default_number' => 0,
|
||||
'sorting' => true,
|
||||
),
|
||||
array(
|
||||
'id' => '_um_filters',
|
||||
'type' => 'checkbox',
|
||||
|
||||
Reference in New Issue
Block a user