mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
- added profile privacy setting for the avoiding profile indexation;
This commit is contained in:
@@ -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',
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user