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

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

Enable Support Worker Ticket Submissions

Enable Support Worker Ticket Submissions

Enable Support Workers to log tickets via the website front end

The default configuration for KB Support restricts support workers from logging tickets via the website front end. It is generally expected that support workers would create tickets on behalf of a customer via the WordPress admin console.

When attempting to log a support ticket, support workers will see the message:

Support Workers cannot submit

You can easily change this behaviour by using the kbs_agent_can_submit filter.

Enable Support Worker Ticket Submissions

Place the following into your functions.php file, or into a custom plugin, to allow all agents to be able to log support tickets from the front end.

/**
 * Override default settings to enable agents to log support tickets
 * from the front end of our website.
 *
 * @param	bool	$can_submit		True|False. Whether or not agents can submit
 * @return	bool	True if the agent can submit, otherwise false
 */
function kbs_example_allow_agent_submissions( $can_submit )	{
	if ( kbs_is_agent() )	{
		$can_submit = true;
	}
	return $can_submit;
}
add_filter( 'kbs_agent_can_submit', 'kbs_example_allow_agent_submissions' );

You can perform additional validation within the if ( kbs_is_agent() ) statement as required.

Agents will now be able to log support tickets via the front end of your website. Customer fields will not be auto completed like they are if a logged in customer is logging a new ticket.


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.

Hooks Agent Customisation Tickets Last updated: 10/08/2018

Published by Cristian Raiber

Posts by Cristian Raiber

Post navigation

Previous

Configuring Canned Replies

Next

Working with Caching Plugins

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