You may wish to display a login form for users that elect to create an account during registration, whilst logging a support ticket or at any other time.
KB Support enables you to display a simple login form with the [kbs_login]
shortcode. A user can then login by entering their username (or email address) and password combination.
The [kbs_login]
shortcode should be added on a page that you want to act as the login page.
Default Usage
[kbs_login]
Optional Parameters
[kbs_login]
accepts a single optional parameter redirect that allows you to define the page that the user should be redirected to after login. By default, the user will be redirected back to the page that the login form was displayed on. However, if you wanted to redirect them elsewhere on your site, such as your homepage, you could make use of this parameter like so:
[kbs_login redirect="http://yoursite.com"]
The login form is populated by the shortcode-login.php template file.
If the user is already logged in “You are already logged in” is displayed in place of the login form.
Was this article helpful?
We're working hard to ensure we provide you with useful and relevant documentation to help you get the most out of KB Support.
Please take a moment to let us know if you found this article helpful.