public/wordpress/wp-content/plugins/theme-my-login/admin/settings.php
/**
 * Get the settings fields.
 *
 * @since 7.0
 *
 * @return array The settings fields.
 */
Get the settings fields.

@return array The settings fields.
Get the settings fields . @return array The settings fields .
function tml_admin_get_settings_fields() {
	$fields = array();
	$fields['tml_settings_login'] = array(
		 type
		'tml_login_type' => array(
			'title'             => __( 'Login Type', 'theme-my-login' ),
			'callback'          => 'tml_admin_setting_callback_radio_group_field',
			'sanitize_callback' => 'sanitize_text_field',
			'args' => array(
				'label_for' => 'tml_login_type',
				'legend'    => __( 'Login Type', 'theme-my-login' ),
				'options'   => array(
					'default'  => __( 'Default',       'theme-my-login' ),
					'username' => __( 'Username only', 'theme-my-login' ),
					'email'    => __( 'Email only',    'theme-my-login' ),
				),
				'checked'   => get_site_option( 'tml_login_type', 'default' ),
			),
		),
	);
	$fields['tml_settings_registration'] = array(
		 type
		'tml_registration_type' => array(
			'title'             => __( 'Registration Type', 'theme-my-login' ),
			'callback'          => 'tml_admin_setting_callback_radio_group_field',
			'sanitize_callback' => 'sanitize_text_field',
			'args' => array(
				'label_for' => 'tml_registration_type',
				'legend'    => __( 'Registration Type', 'theme-my-login' ),
				'options'   => array(
					'default'  => __( 'Default',    'theme-my-login' ),
					'email'    => __( 'Email only', 'theme-my-login' ),
				),
				'checked'   => get_site_option( 'tml_registration_type', 'default' ),
			),
		),
		'tml_user_passwords' => array(
			'title'             => __( 'Passwords', 'theme-my-login' ),
			'callback'          => 'tml_admin_setting_callback_checkbox_field',
			'sanitize_callback' => 'sanitize_text_field',
			'args' => array(
				'label_for' => 'tml_user_passwords',
				'label'     => __( 'Allow users to set their own password', 'theme-my-login' ),
				'value'     => '1',
				'checked'   => get_site_option( 'tml_user_passwords' ),
			),
		),
		'tml_auto_login' => array(
			'title'             => __( 'Auto-Login', 'theme-my-login' ),
			'callback'          => 'tml_admin_setting_callback_checkbox_field',
			'sanitize_callback' => 'sanitize_text_field',
			'args' => array(
				'label_for' => 'tml_auto_login',
				'label'     => __( 'Automatically log in users after registration', 'theme-my-login' ),
				'value'     => '1',
				'checked'   => get_site_option( 'tml_auto_login' ),
			),
		),
	);
	$fields['tml_settings_slugs'] = array();
	foreach ( tml_get_actions() as $action ) {
		if ( ! $action->show_in_slug_settings ) {
			continue;
		}
		$slug_option = 'tml_' . $action->get_name() . '_slug';
		$fields['tml_settings_slugs'][ $slug_option ] = array(
			'title'             => $action->get_title(),
			'callback'          => 'tml_admin_setting_callback_input_field',
			'sanitize_callback' => 'sanitize_text_field',
			'args' => array(
				'label_for'   => $slug_option,
				'value'       => get_site_option( $slug_option, $action->get_slug() ),
				'input_class' => 'regular-text code',
				'description' => sprintf( '<a href="%1$s">%1$s</a>', $action->get_url() ),
			),
		);
	}
	return (array) apply_filters( 'tml_admin_get_settings_fields', $fields );
}
function tml_admin_get_settings_fields ( ) { $ fields = array ( ) ; $ fields [ 'tml_settings_login' ] = array ( 'tml_login_type' => array ( 'title' => __ ( 'Login Type' , 'theme-my-login' ) , 'callback' => 'tml_admin_setting_callback_radio_group_field' , 'sanitize_callback' => 'sanitize_text_field' , 'args' => array ( 'label_for' => 'tml_login_type' , 'legend' => __ ( 'Login Type' , 'theme-my-login' ) , 'options' => array ( 'default' => __ ( 'Default' , 'theme-my-login' ) , 'username' => __ ( 'Username only' , 'theme-my-login' ) , 'email' => __ ( 'Email only' , 'theme-my-login' ) , ) , 'checked' => get_site_option ( 'tml_login_type' , 'default' ) , ) , ) , ) ; $ fields [ 'tml_settings_registration' ] = array ( 'tml_registration_type' => array ( 'title' => __ ( 'Registration Type' , 'theme-my-login' ) , 'callback' => 'tml_admin_setting_callback_radio_group_field' , 'sanitize_callback' => 'sanitize_text_field' , 'args' => array ( 'label_for' => 'tml_registration_type' , 'legend' => __ ( 'Registration Type' , 'theme-my-login' ) , 'options' => array ( 'default' => __ ( 'Default' , 'theme-my-login' ) , 'email' => __ ( 'Email only' , 'theme-my-login' ) , ) , 'checked' => get_site_option ( 'tml_registration_type' , 'default' ) , ) , ) , 'tml_user_passwords' => array ( 'title' => __ ( 'Passwords' , 'theme-my-login' ) , 'callback' => 'tml_admin_setting_callback_checkbox_field' , 'sanitize_callback' => 'sanitize_text_field' , 'args' => array ( 'label_for' => 'tml_user_passwords' , 'label' => __ ( 'Allow users to set their own password' , 'theme-my-login' ) , 'value' => '1' , 'checked' => get_site_option ( 'tml_user_passwords' ) , ) , ) , 'tml_auto_login' => array ( 'title' => __ ( 'Auto-Login' , 'theme-my-login' ) , 'callback' => 'tml_admin_setting_callback_checkbox_field' , 'sanitize_callback' => 'sanitize_text_field' , 'args' => array ( 'label_for' => 'tml_auto_login' , 'label' => __ ( 'Automatically log in users after registration' , 'theme-my-login' ) , 'value' => '1' , 'checked' => get_site_option ( 'tml_auto_login' ) , ) , ) , ) ; $ fields [ 'tml_settings_slugs' ] = array ( ) ; foreach ( tml_get_actions ( ) as $ action ) { if ( ! $ action -> show_in_slug_settings ) { continue ; } $ slug_option = 'tml_' . $ action -> get_name ( ) . '_slug' ; $ fields [ 'tml_settings_slugs' ] [ $ slug_option ] = array ( 'title' => $ action -> get_title ( ) , 'callback' => 'tml_admin_setting_callback_input_field' , 'sanitize_callback' => 'sanitize_text_field' , 'args' => array ( 'label_for' => $ slug_option , 'value' => get_site_option ( $ slug_option , $ action -> get_slug ( ) ) , 'input_class' => 'regular-text code' , 'description' => sprintf ( '<a href="%1$s">%1$s</a>' , $ action -> get_url ( ) ) , ) , ) ; } return ( array ) apply_filters ( 'tml_admin_get_settings_fields' , $ fields ) ; }
Get the settings fields.
Get the settings fields .
// Login // Login type // Registration // Registration type // User passwords // Auto-login // Slugs /**
	 * Filters the settings fields.
	 *
	 * @since 7.0
	 *
	 * @param array $fields The settings fields.
	 */