[kbs_login] Shortcode
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
shortcode. A user can then login by entering their username (or email address) and password combination.
The
shortcode should be added on a page that you want to act as the login page.
Default Usage
Optional Parameters
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:
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.