Menu Close Menu
Menu
  • 0
    • Number of items in cart: 0

      • Your cart is empty.
      • Total: $0.00
      • Checkout
  • Pricing
    • Purchase Options
    • Individual Extensions
  • Support
    • Documentation
    • Log a Support Ticket
  • Your Account
    • Register
  • Blog

[kbs_login] Shortcode

[kbs_login] Shortcode

Inserts a login form in to your web page for a user to login

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.

[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 [kbs_login] shortcode. A user can then login by entering their username (or email address) and password combination. The [kbs_login] shortcode should…
KB Article rating: 4.0 based on 1 ratings
Shortcode Last updated: 06/03/2017

Published by Cristian Raiber

Posts by Cristian Raiber

Post navigation

Previous

Shortcodes

Next

[kbs_register] Shortcode

Contact Details

  • Follow us on Twitter
  • Like us on Facebook
  • Fork us on GitHub

Developer Resources

Plugin Boilerplate

Trello Board

GitHub Repository

Ratings & Satisfaction Docs

  • Configuring Ratings and Satisfaction
  • Advanced Settings

Email Support Docs

  • Plugin Requirements
  • Configuring Email Support
  • Creating New Tickets
  • Replying to Closed Tickets
  • Anonymous Replies in Email Support
  • HTML Emails Tags
  • Email Commands
  • Defining IMAP Flags

KBS REST API Docs

  • Using the REST API
  • Tickets REST API Route
  • Replies REST API Route
  • Articles REST API Route
  • Agents REST API Route
  • Customers REST API Route
  • Companies REST API Route
  • Forms REST API Route
  • Form Fields REST API Route
  • Ticket Categories REST API Route
  • Ticket Departments REST API Route
  • Ticket Source REST API Route

Article Categories

  • Configuration
    • Advanced
    • Getting Started
  • Developer Docs
    • Constants
    • Hooks
  • Extensions
  • FAQs
© 2023 KB Support. All rights reserved.
  • Blog
  • Shop
  • Support
  • Privacy Policy
  • Discount Code