Skip to content

For developers

System → For Developers lists every action and filter in the installed plugin, where each fires, and the comment explaining it. It is read from the source each time, so it is always current, and can be downloaded as Markdown.

The For Developers screen: counts of events, actions and filters, and the list of hooks.

The stable way to react to what happens on the help desk. Each event fires two actions: jsst_event_<name> and the catch-all jsst_event. Both receive one array:

add_action( 'jsst_event_ticket.closed', function ( $event ) {
// $event['event'] 'ticket.closed'
// $event['occurred'] UTC time
// $event['actor'] who did it: kind, wpuid, display…
// $event['payload'] for this event: ticket_id
} );
Event Payload
ticket.created ticket_id
ticket.reply_added ticket_id, reply_id
ticket.note_added ticket_id, note_id
ticket.status_changed ticket_id, status
ticket.priority_changed ticket_id, priorityid
ticket.department_changed ticket_id, departmentid
ticket.assignment_changed ticket_id, staffid
ticket.closed, ticket.reopened, ticket.deleted ticket_id
ticket.merged ticket_id, merged_into

Packs add more, such as sla.warning, sla.breached and feedback.received.

Hook Use it to
jsst_ticket_allowed Refuse a ticket before it is saved: return a message instead of true.
jsst_validate_ticket_form Add your own checks to the ticket form: return a sentence to refuse.
jsst_after_ticket_create Run code after a ticket is created ($data, $ticketid).
jsst_attachment_scan Pass uploads to a malware scanner: return true to accept, or a message to refuse.
jsst_attachment_forbidden_extensions Change the list of refused file extensions.
jsst_capability_decision Make the final call on any permission.
jsst_cannedresponse_placeholders Add your own canned response placeholders.
jsst_export_ticket_columns, jsst_export_ticket_row Change the CSV export.
jsst_csv_import_columns Accept more columns when importing.
jsst_email_identity Change the name, address or reply-to of outgoing mail.
jsst_company_public_domains Change which mail providers can’t be company domains.

Older hooks such as jsst-ticketcreate, jsst-ticketreply, jsst-ticketclose and jsst-ticketdelete still fire, but new code should use the events.

The free plugin has no REST API. The Integrations pack adds one, authenticated with WordPress Application Passwords, along with signed outgoing webhooks.