Adds new option to disable name fields in account page

This commit is contained in:
Champ Camba
2017-03-14 15:31:52 +08:00
parent 587b101dbe
commit a1487dbad5
2 changed files with 30 additions and 0 deletions
+10
View File
@@ -317,6 +317,16 @@ $this->sections[] = array(
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'account_name_disable',
'type' => 'switch',
'title' => __( 'Disable First & Last Name fields','ultimatemember' ),
'default' => 0,
'desc' => __('Whether to allow users changing their first and last name in account page.','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
'required' => array( 'account_name', '=', '1' ),
),
array(
'id' => 'account_name_require',
'type' => 'switch',