Documentation

Front-end Membership Modules

Home / Login Form Shortcode

Login Form Shortcode

Once you configure this plugin as per your requirements, you can use the following shortcode to display the login form on any page, post and sidebar text widget.

Shortcode Parameters:

redirect_url
User will be redirected to this Url after successful login.
(Default: Homepage)

user_login_label
This will replace the default username field label.
(Default: Username or Email address: )

user_pass_label
This will replace the default password field label.
(Default: Password: )

required_text
This text will be added to the username label.
(Default: required)

button_text
This will replace the submit button text.
(Default: Login)

button_class
You can specify custom CSS classes for the submit button displayed on the registration form.
(Default: Can be changed from the plugin settings.)

class
You can specify custom CSS class for the form container, if you wish to use your own CSS for the form styles.

Using Shortcode Generator

You can use our Shortcode Generator to easily specify parameters and insert this shortcode on any page while editing a page or post.

shortcode-generator-login-form

 Display login form in template files

If you are a developer or creating your own WordPress theme, you can call this shortcode via following PHP function: