Provides a simple login form for use anywhere within WordPress. By default, it echoes the HTML immediately. Pass array(‘echo’=>false) to return the string instead.

Signature

wp_login_form( $args = array() )
args
 (array) Configuration options to modify the form output.
Default: array()

Return

(string|null) String when retrieving, null when displaying.

Source

function wp_login_form( $args = array() ) {
	$defaults = array(
		'echo' => true,
		'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page
		'form_id' => 'loginform',
		'label_username' => __( 'Username' ),
		'label_password' => __( 'Password' ),
		'label_remember' => __( 'Remember Me' ),
		'label_log_in' => __( 'Log In' ),
		'id_username' => 'user_login',
		'id_password' => 'user_pass',
		'id_remember' => 'rememberme',
		'id_submit' => 'wp-submit',
		'remember' => true,
		'value_username' => '',
		'value_remember' => false, // Set this to true to default the "Remember me" checkbox to checked
	);

	/**
	 * Filter the default login form output arguments.
71 more lines...
WP Trac GitHub

Link here