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?

KBS is now a LOGON product. For new and existing support requests, please send us an email.
If you have an open support ticket, please email us directly to follow up.
This is default text for notification bar