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

      • Your basket is empty.
      • Total: £0.00
      • Checkout
  • Blog
  • Extensions
  • Support
    • Documentation
    • Log a Support Ticket
  • Your Account
    • Register
  • Contact Us
  • Demo

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.

Share this:

  • Tweet
  • WhatsApp

Related Articles

Hooks Agent Customisation Tickets Last updated: 10th August 2018

Published by Michael

Mike is the founder and lead developer of KB Support. When he's not working on KB Support, he's generally spending time with his 3 children and following his favourite football team

Posts by Michael Visit Website

Post navigation

Previous

Configuring Canned Replies

Next

Working with Caching Plugins

Article Categories

  • Configuration
    • Advanced
    • Getting Started
  • Developer Docs
    • Constants
    • Hooks
  • Extensions
  • FAQs

Social Links

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

Resources

  • Contact Us
  • KB Support Discount Code
  • KB Support Demo Site
  • Easy Plugin Demo

Sign up to our newsletter!

Subscribe now to receive all the latest news, thoughts and offers from KB Support.
New subscribers will receive 15% off their first purchase.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
© 2021 KB Support. All rights reserved.
  • Blog
  • Shop
  • Support
  • Demo
  • Privacy Policy
  • Discount Code