Skip to content
wp-skills
Register
tools/login-form-generator

Login Form Generator

WordPress login form generator is a tool that allows users to create a customizable, user-friendly login form for logging into their WordPress site.

The form element's HTML id. Blank leaves WordPress's own default in place.

Where a successful login lands. Blank returns the user to the page the form was on.

On prints the form. Off returns the markup instead, which is what you want inside a shortcode — a shortcode has to return its output.

Off removes the checkbox, and with it the fourteen-day login cookie.

Only has an effect while the checkbox is shown.

Every field here is optional. Left blank, WordPress supplies its own id — an empty string is a value, not “leave it alone”, so blanks are omitted from the argument array rather than passed through.

WordPress's own wording, which is worth keeping unless the site only accepts one of the two.

Pre-fills the box. Useful after a failed submission, not much else.

The password input's HTML id.

The password input's label.

The checkbox's HTML id.

The checkbox's label.

The submit button's HTML id.

The submit button's wording.

snippet.php
$args = array(
	'echo'           => false,
	'remember'       => false,
	'value_remember' => false,
);

// 'echo' is false, so the markup is returned rather than printed.
$form = wp_login_form( $args );