Add user_url as predefined Website URL field

This commit is contained in:
Champ Camba
2018-03-21 21:12:57 +08:00
parent 2ce33098b5
commit d8c5449215
2 changed files with 20 additions and 0 deletions
+11
View File
@@ -733,6 +733,17 @@ if ( ! class_exists( 'Builtin' ) ) {
'editable' => 1,
),
'user_url' => array(
'title' => __('Website URL','ultimate-member'),
'metakey' => 'user_url',
'type' => 'url',
'label' => __('Website URL','ultimate-member'),
'required' => 1,
'public' => 1,
'editable' => 1,
'validate' => 'url'
),
'user_registered' => array(
'title' => __('Registration Date','ultimate-member'),
'metakey' => 'user_registered',
+9
View File
@@ -2169,6 +2169,15 @@ function um_user( $data, $attrs = null ) {
break;
case 'user_url':
$value = um_profile( $data );
return $value;
break;
}
}