- 2.2.1 prepare to the release;

This commit is contained in:
Nikita Sinelnikov
2021-07-30 14:20:11 +03:00
parent 250a4ded5c
commit c765d03ce4
7 changed files with 34 additions and 14 deletions
+6 -6
View File
@@ -416,7 +416,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_access_hide_from_queries',
'type' => 'checkbox',
'label' => __( 'Would you like to display 404 error on term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'label' => __( 'Would you like to display 404 error on the term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'description' => __( 'Recommended to be enabled. Restricted term\'s archive page and all terms\' posts will be hidden by exclusion from WP Query. The safest and most effective method that hides post and its comments from all requests, RSS feeds, etc. on your site', 'ultimate-member' ),
'value' => 1,
'conditional' => array( '_um_accessible', '!=', '0' ),
@@ -424,7 +424,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_noaccess_action',
'type' => 'select',
'label' => __( 'What happens when users without access tries to view the term\'s post?', 'ultimate-member' ),
'label' => __( 'What happens when users without access try to view the term\'s post?', 'ultimate-member' ),
'description' => __( 'Action when users without access tries to view the term\'s post', 'ultimate-member' ),
'value' => '0',
'options' => array(
@@ -436,8 +436,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_restrict_by_custom_message',
'type' => 'select',
'label' => __( 'Would you like to use the global default message or apply a custom message to this term\'s post?', 'ultimate-member' ),
'description' => __( 'Action when users without access tries to view the term\'s post', 'ultimate-member' ),
'label' => __( 'Restricted access message type', 'ultimate-member' ),
'description' => __( 'Would you like to use the global default message or apply a custom message to this term\'s post?', 'ultimate-member' ),
'value' => '0',
'options' => array(
'0' => __( 'Global default message', 'ultimate-member' ),
@@ -568,7 +568,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_access_hide_from_queries',
'type' => 'checkbox',
'label' => __( 'Would you like to display 404 error on term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'label' => __( 'Would you like to display 404 error on the term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'description' => __( 'Recommended to be enabled. Restricted term\'s archive page and all terms\' posts will be hidden by exclusion from WP Query. The safest and most effective method that hides post and its comments from all requests, RSS feeds, etc. on your site', 'ultimate-member' ),
'value' => ! empty( $data['_um_access_hide_from_queries'] ) ? $data['_um_access_hide_from_queries'] : '',
'conditional' => array( '_um_accessible', '!=', '0' ),
@@ -576,7 +576,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_noaccess_action',
'type' => 'select',
'label' => __( 'What happens when users without access tries to view the term\'s post?', 'ultimate-member' ),
'label' => __( 'What happens when users without access try to view the term\'s post?', 'ultimate-member' ),
'description' => __( 'Action when users without access tries to view the term\'s post', 'ultimate-member' ),
'value' => ! empty( $data['_um_noaccess_action'] ) ? $data['_um_noaccess_action'] : '0',
'options' => array(