Code-Format
We developed Hasty for you! And we want to improve Hasty for you! So give us feedback and report bugs, so we can make Hasty even better.
Use this tool to create a custom login form on your WordPress site with wp_login_form() function.
Hint: Don’t forget to save the snippet to reuse it later!
Firstly you want to select a name for the snippet, to find it in Hasty for later use. (PRO only)
After you finished that, select a name for the variable, that is used for the arguments. Select the ID attribute value for your form if needed. The default value is ‘loginform’. The redirect URL determines where the user is redirected to, after he logged in successfully. Note that the URL must be absolute. The default value is the request URI.
By default the HTML code will be echoed, if you just need the a return of the code echo can be disabled. The remember me checkbox can be hidden and the default state can be altered.
Now you can customise the labels of the login form. By default the labels are selected by the language, that is used for your WordPress installation.
Lastly select custom IDs for the input fields. The default values are user_login, user_pass, rememberme and wp-submit. In most cases those values should work just fine. Also a default value for the username field can be selected.