mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
Adds new option to disable name fields in account page
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user