dozent_login_form( array $args = array() )

Dozent Login Form


Parameters

$args

(array) (Optional)

Default value: array()


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_login_form( $args = [] ) {

		$defaults = [
			'echo'           => false,
			// Default 'redirect' value takes the user back to the request URI.
			'redirect'       => dozent_dashboard_uri(),
			'form_id'        => 'dozentLoginForm',
			'label_username' => __( 'Username or Email Address', 'dozent' ),
			'label_password' => __( 'Password', 'dozent' ),
			'label_remember' => __( 'Remember Me', 'dozent' ),
			'label_log_in'   => __( 'Log In', 'dozent' ),
			'id_username'    => 'user_login',
			'id_password'    => 'user_pass',
			'id_remember'    => 'rememberme',
			'id_submit'      => 'wp-submit',
			'remember'       => true,
			'value_username' => '',
			// Set 'value_remember' to true to default the "Remember me" checkbox to checked.
			'value_remember' => false,
		];

		$args = wp_parse_args( $args, apply_filters( 'dozent_login_form_defaults', $defaults ) );

		$form = apply_filters( 'dozent_login_form', wp_login_form( $args ), $args );

		if ( dozent_array_get( 'echo', $args ) ) {
			echo $form;
		} else {
			return $form;
		}
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.