New: The user role setting 'Avoid indexing profile by search engines'

This commit is contained in:
denisbaranov
2020-12-15 17:25:24 +02:00
parent fc3902e346
commit 3ffb8257af
3 changed files with 26 additions and 6 deletions
+1 -1
View File
@@ -1139,7 +1139,7 @@ if ( ! class_exists( 'um\core\Builtin' ) ) {
'required' => 0,
'public' => 1,
'editable' => 1,
'default' => '0',
'default' => UM()->roles()->um_user_can( 'profile_noindex' ) ? '1' : '0',
'options' => array(
'0' => __( 'No', 'ultimate-member' ),
'1' => __( 'Yes', 'ultimate-member' ),