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:
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.