- added profile privacy setting for the avoiding profile indexation;

This commit is contained in:
nikitasinelnikov
2020-06-19 13:07:04 +03:00
parent a41cad52e1
commit 02fde13b39
7 changed files with 70 additions and 22 deletions
+31 -12
View File
@@ -1115,18 +1115,37 @@ if ( ! class_exists( 'um\core\Builtin' ) ) {
// account page use ( not public )
'profile_privacy' => array(
'title' => __('Profile Privacy','ultimate-member'),
'metakey' => 'profile_privacy',
'type' => 'select',
'label' => __('Profile Privacy','ultimate-member'),
'help' => __('Who can see your public profile?','ultimate-member'),
'required' => 0,
'public' => 1,
'editable' => 1,
'default' => 'Everyone',
'options' => $profile_privacy,
'allowclear' => 0,
'account_only' => true,
'title' => __( 'Profile Privacy', 'ultimate-member' ),
'metakey' => 'profile_privacy',
'type' => 'select',
'label' => __( 'Profile Privacy', 'ultimate-member' ),
'help' => __( 'Who can see your public profile?', 'ultimate-member' ),
'required' => 0,
'public' => 1,
'editable' => 1,
'default' => 'Everyone',
'options' => $profile_privacy,
'allowclear' => 0,
'account_only' => true,
'required_perm' => 'can_make_private_profile',
),
'profile_noindex' => array(
'title' => __( 'Avoid my profile indexing', 'ultimate-member' ),
'metakey' => 'profile_noindex',
'type' => 'select',
'label' => __( 'Avoid my profile indexing', 'ultimate-member' ),
'help' => __( 'Hide my profile for robots?', 'ultimate-member' ),
'required' => 0,
'public' => 1,
'editable' => 1,
'default' => '0',
'options' => array(
'0' => __( 'No', 'ultimate-member' ),
'1' => __( 'Yes', 'ultimate-member' ),
),
'allowclear' => 0,
'account_only' => true,
'required_perm' => 'can_make_private_profile',
),