- fixed getting default metadata for UM forms;

This commit is contained in:
Nikita Sinelnikov
2021-07-26 14:57:31 +03:00
parent 54f0e059e6
commit 0d2ac59ce3
11 changed files with 81 additions and 43 deletions
@@ -37,7 +37,7 @@ $fields = array(
'type' => 'checkbox',
'label' => __( 'Enable custom sorting', 'ultimate-member' ),
'tooltip' => __( 'Whether to provide an ability to change the sorting on the directory page', 'ultimate-member' ),
'value' => UM()->query()->get_meta_value( '_um_enable_sorting' ),
'value' => (bool) get_post_meta( $post_id, '_um_enable_sorting', true ),
),
array(
'id' => '_um_sorting_fields',