* @since 1.34
*/
public static $constructorOptions = [
+ 'AllowRequiringEmailForResets',
'AllowUserCss',
'AllowUserCssPrefs',
'AllowUserJs',
}
}
+ if ( $this->options->get( 'AllowRequiringEmailForResets' ) ) {
+ $defaultPreferences['requireemail'] = [
+ 'type' => 'toggle',
+ 'label-message' => 'tog-requireemail',
+ 'help-message' => 'prefs-help-requireemail',
+ 'section' => 'personal/email',
+ 'disabled' => $disableEmailPrefs,
+ ];
+ }
+
if ( $this->options->get( 'EnableUserEmail' ) && $user->isAllowed( 'sendemail' ) ) {
$defaultPreferences['disablemail'] = [
'id' => 'wpAllowEmail',