action
Fires after one customer was merged into another.
Parameters of davo_customers_merged Parameter Type Description $transfer_id int Transfer row id. $from_key string Source customer key. $to_key string Receiving customer key. $count int Tickets moved. $actor_id int Manager who merged them.
add_action Copyadd_action ( 'davo_customers_merged' , 'my_action_callback' , 10 , 5 );
/**
* @param int $transfer_id
* @param string $from_key
* @param string $to_key
* @param int $count
* @param int $actor_id
*/
function my_action_callback ( $transfer_id , $from_key , $to_key , $count , $actor_id ) {
// Your code here.
}src/domains/tickets/services/customer-transfer.php:303
action
Fires when roles are registered, so a domain can add its own through the Role_Manager.
add_action Copyadd_action ( 'davo_register_roles' , 'my_action_callback' , 10 , 1 );
function my_action_callback ( $arg1 ) {
// Your code here.
}src/domains/tickets/roles-capabilities.php:292, and 1 more place
action
Fires once, early on init, so a status can be registered before anything else in the request reads from the registry (post-status registration just below, REST status enums, Tickets_Lifecycle_Service::change_status()'s transition lookups, and so on).
Parameters of davo_register_ticket_statuses Parameter Type Description $registry Tickets_Status_Registry Shared status registry instance.
add_action Copyadd_action ( 'davo_register_ticket_statuses' , 'my_action_callback' , 10 , 1 );
/**
* @param Tickets_Status_Registry $registry
*/
function my_action_callback ( $registry ) {
// Your code here.
}src/domains/tickets/initializer.php:637
action
Fires after an account was added to the support team.
Parameters of davo_ticket_agent_added Parameter Type Description $user_id int The new agent. $actor_id int Person who added them.
add_action Copyadd_action ( 'davo_ticket_agent_added' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param int $actor_id
*/
function my_action_callback ( $user_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/agents.php:176, and 1 more place
action
Fires after an agent's department membership changes.
Parameters of davo_ticket_agent_departments_changed Parameter Type Description $agent_id int Agent's user ID. $department_ids array<int> New department term IDs.
add_action Copyadd_action ( 'davo_ticket_agent_departments_changed' , 'my_action_callback' , 10 , 2 );
/**
* @param int $agent_id
* @param array<int> $department_ids
*/
function my_action_callback ( $agent_id , $department_ids ) {
// Your code here.
}src/domains/tickets/services/departments.php:259
action
Fires after an agent group is created.
Parameters of davo_ticket_agent_group_created Parameter Type Description $group_id int New group id. $name string Group name. $agent_ids int[] Member agent user IDs. $actor_id int User who created it.
add_action Copyadd_action ( 'davo_ticket_agent_group_created' , 'my_action_callback' , 10 , 4 );
/**
* @param int $group_id
* @param string $name
* @param int[] $agent_ids
* @param int $actor_id
*/
function my_action_callback ( $group_id , $name , $agent_ids , $actor_id ) {
// Your code here.
}src/domains/tickets/services/agent-groups.php:130
action
Fires after an agent group is deleted.
Parameters of davo_ticket_agent_group_deleted Parameter Type Description $group_id int Deleted group id. $group array The group as it was, including its member IDs. $actor_id int User who deleted it.
add_action Copyadd_action ( 'davo_ticket_agent_group_deleted' , 'my_action_callback' , 10 , 3 );
/**
* @param int $group_id
* @param array $group
* @param int $actor_id
*/
function my_action_callback ( $group_id , $group , $actor_id ) {
// Your code here.
}src/domains/tickets/services/agent-groups.php:243
action
Fires after an agent group is updated.
Parameters of davo_ticket_agent_group_updated Parameter Type Description $group_id int Group id. $group array The group as it was before the change. $actor_id int User who changed it.
add_action Copyadd_action ( 'davo_ticket_agent_group_updated' , 'my_action_callback' , 10 , 3 );
/**
* @param int $group_id
* @param array $group
* @param int $actor_id
*/
function my_action_callback ( $group_id , $group , $actor_id ) {
// Your code here.
}src/domains/tickets/services/agent-groups.php:185
action
Fires after the inboxes an agent is limited to were changed.
Parameters of davo_ticket_agent_inboxes_changed Parameter Type Description $agent_id int Agent user ID. $inbox_ids int[] Inbox term IDs the agent is limited to; empty for no limit.
add_action Copyadd_action ( 'davo_ticket_agent_inboxes_changed' , 'my_action_callback' , 10 , 2 );
/**
* @param int $agent_id
* @param int[] $inbox_ids
*/
function my_action_callback ( $agent_id , $inbox_ids ) {
// Your code here.
}src/domains/tickets/services/inboxes.php:563
action
Fires after an agent's individual permissions changed.
Parameters of davo_ticket_agent_permissions_changed Parameter Type Description $user_id int The person. $applied array<string,bool> API key => new state. $actor_id int Who changed them.
add_action Copyadd_action ( 'davo_ticket_agent_permissions_changed' , 'my_action_callback' , 10 , 3 );
/**
* @param int $user_id
* @param array<string,bool> $applied
* @param int $actor_id
*/
function my_action_callback ( $user_id , $applied , $actor_id ) {
// Your code here.
}src/domains/tickets/services/agents.php:434
action
Fires after an agent was taken off the team.
Parameters of davo_ticket_agent_removed Parameter Type Description $user_id int The person. $actor_id int Who removed them. $released int Tickets that were assigned to them. $reassign_to int Agent who took the tickets over, 0 if unassigned.
add_action Copyadd_action ( 'davo_ticket_agent_removed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $user_id
* @param int $actor_id
* @param int $released
* @param int $reassign_to
*/
function my_action_callback ( $user_id , $actor_id , $released , $reassign_to ) {
// Your code here.
}src/domains/tickets/services/agents.php:288
action
Fires after an agent was switched off or on.
Parameters of davo_ticket_agent_status_changed Parameter Type Description $user_id int The person. $disabled bool True when switched off. $actor_id int Who did it. $released int Tickets released from them when switched off.
add_action Copyadd_action ( 'davo_ticket_agent_status_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $user_id
* @param bool $disabled
* @param int $actor_id
* @param int $released
*/
function my_action_callback ( $user_id , $disabled , $actor_id , $released ) {
// Your code here.
}src/domains/tickets/services/agents.php:342
action
Fires after a ticket's customer data was anonymized.
Parameters of davo_ticket_anonymized Parameter Type Description $ticket_id int Ticket post ID.
add_action Copyadd_action ( 'davo_ticket_anonymized' , 'my_action_callback' , 10 , 1 );
/**
* @param int $ticket_id
*/
function my_action_callback ( $ticket_id ) {
// Your code here.
}src/domains/tickets/privacy.php:406
action
Fires after a ticket's primary assignee changes.
Parameters of davo_ticket_assignment_changed Parameter Type Description $ticket_id int Ticket post ID. $previous_agent int Previous assignee (0 if unassigned). $agent_id int New assignee (0 if unassigned). $actor_id int User ID who made the change. $reason string Handover reason, empty when none was given.
add_action Copyadd_action ( 'davo_ticket_assignment_changed' , 'my_action_callback' , 10 , 5 );
/**
* @param int $ticket_id
* @param int $previous_agent
* @param int $agent_id
* @param int $actor_id
* @param string $reason
*/
function my_action_callback ( $ticket_id , $previous_agent , $agent_id , $actor_id , $reason ) {
// Your code here.
}src/domains/tickets/services/assignment.php:87
action
Fires after a ticket is closed by the auto-close job.
Parameters of davo_ticket_auto_closed Parameter Type Description $ticket_id int Ticket post ID. $days int Inactivity period in days.
add_action Copyadd_action ( 'davo_ticket_auto_closed' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $days
*/
function my_action_callback ( $ticket_id , $days ) {
// Your code here.
}src/domains/tickets/crons/auto-close.php:226
action
Fires before a ticket is permanently deleted.
Parameters of davo_ticket_before_delete Parameter Type Description $ticket_id int Ticket post ID. $actor_id int User performing the deletion.
add_action Copyadd_action ( 'davo_ticket_before_delete' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/deletion.php:67
action
Fires after an agent bookmarks a ticket.
Parameters of davo_ticket_bookmarked Parameter Type Description $ticket_id int Ticket post ID. $agent_id int Agent who bookmarked it.
add_action Copyadd_action ( 'davo_ticket_bookmarked' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $agent_id
*/
function my_action_callback ( $ticket_id , $agent_id ) {
// Your code here.
}src/domains/tickets/services/agent-flags.php:59
filter
Filters the placeholder map used to resolve dynamic shortcode tokens — in a canned response, or in a freshly-typed agent reply.
Parameters of davo_ticket_canned_response_placeholders Parameter Type Description $placeholders array<string, string> Token => replacement value. $ticket WP_Post Ticket being resolved against. $agent_id int Acting agent's user ID.
add_filter Copyadd_filter ( 'davo_ticket_canned_response_placeholders' , 'my_filter_callback' , 10 , 3 );
/**
* @param array<string, string> $placeholders
* @param WP_Post $ticket
* @param int $agent_id
*/
function my_filter_callback ( $placeholders , $ticket , $agent_id ) {
// Change $placeholders as needed, then return it.
return $placeholders ;
}src/domains/tickets/services/canned-responses.php:274
action
Fires after a channel message is delivered.
Parameters of davo_ticket_channel_delivered Parameter Type Description $provider string Provider slug. $event string Event slug. $ticket_id int Ticket post ID.
add_action Copyadd_action ( 'davo_ticket_channel_delivered' , 'my_action_callback' , 10 , 3 );
/**
* @param string $provider
* @param string $event
* @param int $ticket_id
*/
function my_action_callback ( $provider , $event , $ticket_id ) {
// Your code here.
}src/domains/tickets/channels.php:748
action
Fires when a channel message is given up on.
Parameters of davo_ticket_channel_failed Parameter Type Description $provider string Provider slug. $event string Event slug. $ticket_id int Ticket post ID. $reason string Why the last attempt failed.
add_action Copyadd_action ( 'davo_ticket_channel_failed' , 'my_action_callback' , 10 , 4 );
/**
* @param string $provider
* @param string $event
* @param int $ticket_id
* @param string $reason
*/
function my_action_callback ( $provider , $event , $ticket_id , $reason ) {
// Your code here.
}src/domains/tickets/channels.php:770
filter
Filters the text sent to a messaging channel for a ticket event.
Return an empty string to skip this message.
Parameters of davo_ticket_channel_message Parameter Type Description $text string Message text. $slug string Event slug, e.g. created. $provider string Provider slug, e.g. slack. $data array<string, mixed> The event's payload data.
add_filter Copyadd_filter ( 'davo_ticket_channel_message' , 'my_filter_callback' , 10 , 4 );
/**
* @param string $text
* @param string $slug
* @param string $provider
* @param array<string, mixed> $data
*/
function my_filter_callback ( $text , $slug , $provider , $data ) {
// Change $text as needed, then return it.
return $text ;
}src/domains/tickets/channels.php:273
filter
Filters the public address a chat provider calls for an incoming command, for sites behind a proxy or on another host name.
Parameters of davo_ticket_channel_webhook_url Parameter Type Description $url string Address built from the REST root. $path string Route path under the Davo namespace.
add_filter Copyadd_filter ( 'davo_ticket_channel_webhook_url' , 'my_filter_callback' , 10 , 2 );
/**
* @param string $url
* @param string $path
*/
function my_filter_callback ( $url , $path ) {
// Change $url as needed, then return it.
return $url ;
}src/domains/tickets/routes.php:2804
action
Fires after a ticket's customer-reported priority changes.
Parameters of davo_ticket_client_priority_changed Parameter Type Description $ticket_id int Ticket post ID. $from_priority string Previous client priority. $to_priority string New client priority. $actor_id int User ID who made the change.
add_action Copyadd_action ( 'davo_ticket_client_priority_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param string $from_priority
* @param string $to_priority
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $from_priority , $to_priority , $actor_id ) {
// Your code here.
}src/domains/tickets/services/lifecycle.php:393
action
Fires after a ticket's collaborators were replaced.
Parameters of davo_ticket_collaborators_changed Parameter Type Description $ticket_id int Ticket post ID. $collaborators int[] User IDs of the collaborators now on the ticket. $actor_id int User who made the change.
add_action Copyadd_action ( 'davo_ticket_collaborators_changed' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int[] $collaborators
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $collaborators , $actor_id ) {
// Your code here.
}src/domains/tickets/services/assignment.php:235
action
Fires after a new ticket is created (any source).
Parameters of davo_ticket_created Parameter Type Description $ticket_id int New ticket post ID. $customer_id int Creating customer's user ID (0 for a guest).
add_action Copyadd_action ( 'davo_ticket_created' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $customer_id
*/
function my_action_callback ( $ticket_id , $customer_id ) {
// Your code here.
}src/domains/tickets/repository.php:489, and 3 more places
action
Fires after an agent blocks a customer from opening tickets.
Parameters of davo_ticket_customer_blocked Parameter Type Description $key string Customer identity key (u{id} or g{email}). $author_id int Agent who blocked them. $reason string Internal reason, may be empty.
add_action Copyadd_action ( 'davo_ticket_customer_blocked' , 'my_action_callback' , 10 , 3 );
/**
* @param string $key
* @param int $author_id
* @param string $reason
*/
function my_action_callback ( $key , $author_id , $reason ) {
// Your code here.
}src/domains/tickets/services/customers.php:416
action
Fires after one ticket's customer changed.
Parameters of davo_ticket_customer_changed Parameter Type Description $ticket_id int Ticket post ID. $from_key string Previous customer key (u{id} or g{email}). $to_key string New customer key. $actor_id int Manager who made the change.
add_action Copyadd_action ( 'davo_ticket_customer_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param string $from_key
* @param string $to_key
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $from_key , $to_key , $actor_id ) {
// Your code here.
}src/domains/tickets/services/customer-transfer.php:282
action
Fires after an agent adds a note about a customer.
Parameters of davo_ticket_customer_note_added Parameter Type Description $note_id int New note row id. $key string Customer identity key (u{id} or g{email}). $author_id int Agent who wrote it.
add_action Copyadd_action ( 'davo_ticket_customer_note_added' , 'my_action_callback' , 10 , 3 );
/**
* @param int $note_id
* @param string $key
* @param int $author_id
*/
function my_action_callback ( $note_id , $key , $author_id ) {
// Your code here.
}src/domains/tickets/services/customers.php:249
action
Fires after a customer note is deleted.
Parameters of davo_ticket_customer_note_deleted Parameter Type Description $note_id int Deleted note row id. $key string Customer identity key. $actor int Agent who deleted it.
add_action Copyadd_action ( 'davo_ticket_customer_note_deleted' , 'my_action_callback' , 10 , 3 );
/**
* @param int $note_id
* @param string $key
* @param int $actor
*/
function my_action_callback ( $note_id , $key , $actor ) {
// Your code here.
}src/domains/tickets/services/customers.php:310
action
Fires after a customer transfer is undone.
Parameters of davo_ticket_customer_transfer_undone Parameter Type Description $transfer_id int Transfer row id. $restored int Tickets put back. $skipped int Tickets left alone because their customer changed again. $actor_id int Manager who undid it.
add_action Copyadd_action ( 'davo_ticket_customer_transfer_undone' , 'my_action_callback' , 10 , 4 );
/**
* @param int $transfer_id
* @param int $restored
* @param int $skipped
* @param int $actor_id
*/
function my_action_callback ( $transfer_id , $restored , $skipped , $actor_id ) {
// Your code here.
}src/domains/tickets/services/customer-transfer.php:188
action
Fires after an agent lets a blocked customer open tickets again.
Parameters of davo_ticket_customer_unblocked Parameter Type Description $key string Customer identity key (u{id} or g{email}). $author_id int Agent who lifted the block.
add_action Copyadd_action ( 'davo_ticket_customer_unblocked' , 'my_action_callback' , 10 , 2 );
/**
* @param string $key
* @param int $author_id
*/
function my_action_callback ( $key , $author_id ) {
// Your code here.
}src/domains/tickets/services/customers.php:452
action
Fires after a ticket and everything kept for it was permanently deleted.
Parameters of davo_ticket_deleted Parameter Type Description $ticket_id int Ticket post ID that no longer exists. $actor_id int User who deleted it.
add_action Copyadd_action ( 'davo_ticket_deleted' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/deletion.php:91
action
Fires after a department is created.
Parameters of davo_ticket_department_created Parameter Type Description $term_id int Department term ID.
add_action Copyadd_action ( 'davo_ticket_department_created' , 'my_action_callback' , 10 , 1 );
/**
* @param int $term_id
*/
function my_action_callback ( $term_id ) {
// Your code here.
}src/domains/tickets/services/departments.php:98
action
Fires after a department is deleted.
Parameters of davo_ticket_department_deleted Parameter Type Description $term_id int Department term ID.
add_action Copyadd_action ( 'davo_ticket_department_deleted' , 'my_action_callback' , 10 , 1 );
/**
* @param int $term_id
*/
function my_action_callback ( $term_id ) {
// Your code here.
}src/domains/tickets/services/departments.php:195
action
Fires after a draft reply is approved and sent.
Parameters of davo_ticket_draft_approved Parameter Type Description $ticket_id int Ticket post ID. $message_id int Message row id (unchanged — same row, promoted in place). $draft_author_id int Agent who originally wrote the draft. $approving_agent_id int Agent who approved and sent it.
add_action Copyadd_action ( 'davo_ticket_draft_approved' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param int $message_id
* @param int $draft_author_id
* @param int $approving_agent_id
*/
function my_action_callback ( $ticket_id , $message_id , $draft_author_id , $approving_agent_id ) {
// Your code here.
}src/domains/tickets/services/messages.php:284
action
Fires after an agent saves a draft reply, pending approval.
Parameters of davo_ticket_draft_reply_saved Parameter Type Description $ticket_id int Ticket post ID. $message_id int New draft message row id. $author_id int Authoring agent's user ID.
add_action Copyadd_action ( 'davo_ticket_draft_reply_saved' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $message_id
* @param int $author_id
*/
function my_action_callback ( $ticket_id , $message_id , $author_id ) {
// Your code here.
}src/domains/tickets/services/messages.php:223
action
Fires after a ticket's estimated time changes.
Parameters of davo_ticket_estimated_time_changed Parameter Type Description $ticket_id int Ticket post ID. $minutes int New estimate in minutes (0 = cleared). $previous int Previous estimate in minutes (0 = none). $agent_id int Agent who changed it.
add_action Copyadd_action ( 'davo_ticket_estimated_time_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param int $minutes
* @param int $previous
* @param int $agent_id
*/
function my_action_callback ( $ticket_id , $minutes , $previous , $agent_id ) {
// Your code here.
}src/domains/tickets/services/time-tracking.php:234
action
Fires after a customer submits a satisfaction rating.
Parameters of davo_ticket_feedback_submitted Parameter Type Description $ticket_id int Ticket post ID. $rating int 1-5. $agent_id int Assigned agent at the time of rating (0 if unassigned).
add_action Copyadd_action ( 'davo_ticket_feedback_submitted' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $rating
* @param int $agent_id
*/
function my_action_callback ( $ticket_id , $rating , $agent_id ) {
// Your code here.
}src/domains/tickets/repository.php:5332
action
Fires after an agent revokes a guest ticket's emailed links.
Parameters of davo_ticket_guest_access_revoked Parameter Type Description $ticket_id int Ticket post ID. $actor_id int Agent's user ID.
add_action Copyadd_action ( 'davo_ticket_guest_access_revoked' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $actor_id ) {
// Your code here.
}src/domains/tickets/repository.php:4819
action
Fires after a ticket was imported from another help desk. Not davo_ticket_created: that one starts notifications and automation, which an import must not.
Parameters of davo_ticket_imported Parameter Type Description $ticket_id int New ticket post id. $provider string Importer key. $source_id string The ticket's id in the source. $job_id int Import job id.
add_action Copyadd_action ( 'davo_ticket_imported' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param string $provider
* @param string $source_id
* @param int $job_id
*/
function my_action_callback ( $ticket_id , $provider , $source_id , $job_id ) {
// Your code here.
}src/domains/tickets/services/import-writer.php:193
action
Fires after an inbox was archived or restored.
Parameters of davo_ticket_inbox_archived_changed Parameter Type Description $term_id int Inbox term ID. $archived bool Whether it is archived now.
add_action Copyadd_action ( 'davo_ticket_inbox_archived_changed' , 'my_action_callback' , 10 , 2 );
/**
* @param int $term_id
* @param bool $archived
*/
function my_action_callback ( $term_id , $archived ) {
// Your code here.
}src/domains/tickets/services/inboxes.php:273
action
Fires after a ticket moves to another inbox.
Parameters of davo_ticket_inbox_changed Parameter Type Description $ticket_id int Ticket post ID. $old int Previous inbox term ID, 0 when it had none. $inbox_id int New inbox term ID. $actor_id int User who moved it, 0 for the system.
add_action Copyadd_action ( 'davo_ticket_inbox_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param int $old
* @param int $inbox_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $old , $inbox_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/inboxes.php:516
action
Fires after an inbox is created.
Parameters of davo_ticket_inbox_created Parameter Type Description $term_id int Inbox term ID.
add_action Copyadd_action ( 'davo_ticket_inbox_created' , 'my_action_callback' , 10 , 1 );
/**
* @param int $term_id
*/
function my_action_callback ( $term_id ) {
// Your code here.
}src/domains/tickets/services/inboxes.php:158
action
Fires after the default inbox changed.
Parameters of davo_ticket_inbox_default_changed Parameter Type Description $term_id int New default inbox term ID. $previous int Previous default inbox term ID, 0 for none.
add_action Copyadd_action ( 'davo_ticket_inbox_default_changed' , 'my_action_callback' , 10 , 2 );
/**
* @param int $term_id
* @param int $previous
*/
function my_action_callback ( $term_id , $previous ) {
// Your code here.
}src/domains/tickets/services/inboxes.php:773
action
Fires after an inbox was deleted and its tickets moved.
Parameters of davo_ticket_inbox_deleted Parameter Type Description $term_id int Deleted inbox term ID. $fallback_id int Inbox term ID the tickets went to.
add_action Copyadd_action ( 'davo_ticket_inbox_deleted' , 'my_action_callback' , 10 , 2 );
/**
* @param int $term_id
* @param int $fallback_id
*/
function my_action_callback ( $term_id , $fallback_id ) {
// Your code here.
}src/domains/tickets/services/inboxes.php:324
action
Fires after an inbox is edited.
Parameters of davo_ticket_inbox_updated Parameter Type Description $term_id int Inbox term ID.
add_action Copyadd_action ( 'davo_ticket_inbox_updated' , 'my_action_callback' , 10 , 1 );
/**
* @param int $term_id
*/
function my_action_callback ( $term_id ) {
// Your code here.
}src/domains/tickets/services/inboxes.php:217
action
Fires after a ticket is locked.
Parameters of davo_ticket_locked Parameter Type Description $ticket_id int Ticket post ID. $actor_id int Agent/admin user ID who locked it. $reason string Lock reason slug/text.
add_action Copyadd_action ( 'davo_ticket_locked' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $actor_id
* @param string $reason
*/
function my_action_callback ( $ticket_id , $actor_id , $reason ) {
// Your code here.
}src/domains/tickets/services/lifecycle.php:567, and 1 more place
action
Fires after two tickets are merged.
Parameters of davo_ticket_merged Parameter Type Description $source_ticket_id int Ticket merged away. $target_ticket_id int Canonical ticket. $merged_by int Agent/admin user ID who performed the merge.
add_action Copyadd_action ( 'davo_ticket_merged' , 'my_action_callback' , 10 , 3 );
/**
* @param int $source_ticket_id
* @param int $target_ticket_id
* @param int $merged_by
*/
function my_action_callback ( $source_ticket_id , $target_ticket_id , $merged_by ) {
// Your code here.
}src/domains/tickets/services/merge.php:129
action
The source has no description for this hook. It is called from Tickets_Repository::delete_reply().
Passed to callbacks: (int) $message['ticket_id']$message_id$viewer['id']$visibility
add_action Copyadd_action ( 'davo_ticket_message_deleted' , 'my_action_callback' , 10 , 4 );
function my_action_callback ( $arg1 , $arg2 , $arg3 , $arg4 ) {
// Your code here.
}src/domains/tickets/repository.php:4325
action
Fires after a reply/note is edited.
Parameters of davo_ticket_message_edited Parameter Type Description $ticket_id int Ticket post ID. $message_id int Edited message row id. $editor_id int User ID who made the edit.
add_action Copyadd_action ( 'davo_ticket_message_edited' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $message_id
* @param int $editor_id
*/
function my_action_callback ( $ticket_id , $message_id , $editor_id ) {
// Your code here.
}src/domains/tickets/repository.php:4270
action
Fires after a private note is added to a ticket.
Parameters of davo_ticket_note_added Parameter Type Description $ticket_id int Ticket post ID. $message_id int New message row id. $author_id int Authoring agent/admin user ID.
add_action Copyadd_action ( 'davo_ticket_note_added' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $message_id
* @param int $author_id
*/
function my_action_callback ( $ticket_id , $message_id , $author_id ) {
// Your code here.
}src/domains/tickets/services/messages.php:172
action
Fires after an outgoing webhook delivery succeeds.
Parameters of davo_ticket_outbound_webhook_delivered Parameter Type Description $envelope array<string, mixed> Payload that was delivered. $code int Response status code. $attempt int Which attempt succeeded.
add_action Copyadd_action ( 'davo_ticket_outbound_webhook_delivered' , 'my_action_callback' , 10 , 3 );
/**
* @param array<string, mixed> $envelope
* @param int $code
* @param int $attempt
*/
function my_action_callback ( $envelope , $code , $attempt ) {
// Your code here.
}src/domains/tickets/outbound-webhooks.php:343
action
Fires when an outgoing webhook delivery is given up on, either because every attempt failed or because the failure was not one worth retrying.
Parameters of davo_ticket_outbound_webhook_failed Parameter Type Description $envelope array<string, mixed> Payload that could not be delivered. $reason string Why the last attempt failed. $attempt int How many attempts were made.
add_action Copyadd_action ( 'davo_ticket_outbound_webhook_failed' , 'my_action_callback' , 10 , 3 );
/**
* @param array<string, mixed> $envelope
* @param string $reason
* @param int $attempt
*/
function my_action_callback ( $envelope , $reason , $attempt ) {
// Your code here.
}src/domains/tickets/outbound-webhooks.php:444
filter
Filters the outgoing webhook payload before it is queued.
Return an empty array to skip this delivery.
Parameters of davo_ticket_outbound_webhook_payload Parameter Type Description $envelope array<string, mixed> Payload: id, event, created_at, site_url, data. $slug string Event slug, e.g. created.
add_filter Copyadd_filter ( 'davo_ticket_outbound_webhook_payload' , 'my_filter_callback' , 10 , 2 );
/**
* @param array<string, mixed> $envelope
* @param string $slug
*/
function my_filter_callback ( $envelope , $slug ) {
// Change $envelope as needed, then return it.
return $envelope ;
}src/domains/tickets/outbound-webhooks.php:195
filter
Filters the shortcode catalog shown in the picker. Add an entry here for every token a davo_ticket_canned_response_placeholders callback supplies.
Parameters of davo_ticket_placeholder_catalog Parameter Type Description $catalog array<int, array{token: string, description: string, group: string}> Picker entries.
add_filter Copyadd_filter ( 'davo_ticket_placeholder_catalog' , 'my_filter_callback' , 10 , 1 );
/**
* @param array<int, array{token: string, description: string, group: string}> $catalog
*/
function my_filter_callback ( $catalog ) {
// Change $catalog as needed, then return it.
return $catalog ;
}src/domains/tickets/services/canned-responses.php:411
action
Fires when an agent arrives on a ticket, leaves it, or starts or stops writing a reply — not on every heartbeat.
Parameters of davo_ticket_presence_changed Parameter Type Description $ticket_id int Ticket post ID. $user_id int Agent whose presence changed. $viewers array<int, array<string, mixed>> Everyone on the ticket after the change: each user_id, name, avatar, state (viewing|replying), since (GMT) and expires_in (seconds).
add_action Copyadd_action ( 'davo_ticket_presence_changed' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $user_id
* @param array<int, array<string, mixed>> $viewers
*/
function my_action_callback ( $ticket_id , $user_id , $viewers ) {
// Your code here.
}src/domains/tickets/services/presence.php:245
action
Fires after a ticket's priority changes.
Parameters of davo_ticket_priority_changed Parameter Type Description $ticket_id int Ticket post ID. $from_priority string Previous priority. $to_priority string New priority. $actor_id int User ID who made the change.
add_action Copyadd_action ( 'davo_ticket_priority_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param string $from_priority
* @param string $to_priority
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $from_priority , $to_priority , $actor_id ) {
// Your code here.
}src/domains/tickets/services/lifecycle.php:339
action
Fires after a ticket's product changes.
Parameters of davo_ticket_product_changed Parameter Type Description $ticket_id int Ticket post ID. $previous_product int Product it had, or 0. $product_id int Product it has now, or 0. $actor_id int User who changed it.
add_action Copyadd_action ( 'davo_ticket_product_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param int $previous_product
* @param int $product_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $previous_product , $product_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/products.php:240
action
Fires after a product is created.
Parameters of davo_ticket_product_created Parameter Type Description $product_id int Product row id. $title string Product name. $actor_id int User who created it.
add_action Copyadd_action ( 'davo_ticket_product_created' , 'my_action_callback' , 10 , 3 );
/**
* @param int $product_id
* @param string $title
* @param int $actor_id
*/
function my_action_callback ( $product_id , $title , $actor_id ) {
// Your code here.
}src/domains/tickets/services/products.php:125
action
Fires after a product is deleted.
Parameters of davo_ticket_product_deleted Parameter Type Description $product_id int Product row id. $title string Name it had. $actor_id int User who deleted it.
add_action Copyadd_action ( 'davo_ticket_product_deleted' , 'my_action_callback' , 10 , 3 );
/**
* @param int $product_id
* @param string $title
* @param int $actor_id
*/
function my_action_callback ( $product_id , $title , $actor_id ) {
// Your code here.
}src/domains/tickets/services/products.php:204
action
Fires after a product is renamed or re-described.
Parameters of davo_ticket_product_updated Parameter Type Description $product_id int Product row id. $title string Product name now. $actor_id int User who changed it.
add_action Copyadd_action ( 'davo_ticket_product_updated' , 'my_action_callback' , 10 , 3 );
/**
* @param int $product_id
* @param string $title
* @param int $actor_id
*/
function my_action_callback ( $product_id , $title , $actor_id ) {
// Your code here.
}src/domains/tickets/services/products.php:164
action
Fires after a customer sets or corrects the purchase code on a ticket.
Parameters of davo_ticket_purchase_code_set Parameter Type Description $ticket_id int Ticket post ID. $actor_id int Customer's user ID.
add_action Copyadd_action ( 'davo_ticket_purchase_code_set' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $actor_id ) {
// Your code here.
}src/domains/tickets/repository.php:4886
action
Fires after a ticket is reopened.
Parameters of davo_ticket_reopened Parameter Type Description $ticket_id int Ticket post ID. $actor_id int User ID who reopened it (0 = system).
add_action Copyadd_action ( 'davo_ticket_reopened' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/lifecycle.php:467
action
Fires after any public reply/email message is added to a ticket.
Parameters of davo_ticket_reply_added Parameter Type Description $ticket_id int Ticket post ID. $message_id int New message row id. $author_id int Authoring user ID. $author_type string One of Tickets_Helpers::AUTHOR_TYPE_*.
add_action Copyadd_action ( 'davo_ticket_reply_added' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param int $message_id
* @param int $author_id
* @param string $author_type
*/
function my_action_callback ( $ticket_id , $message_id , $author_id , $author_type ) {
// Your code here.
}src/domains/tickets/services/messages.php:475
filter
Filters a ticket's REST response, the same extension point Questions/Answers already use for e.g. Custom Fields.
Parameters of davo_ticket_response Parameter Type Description $response array<string, mixed> Response being built. $post WP_Post Ticket post.
add_filter Copyadd_filter ( 'davo_ticket_response' , 'my_filter_callback' , 10 , 2 );
/**
* @param array<string, mixed> $response
* @param WP_Post $post
*/
function my_filter_callback ( $response , $post ) {
// Change $response as needed, then return it.
return $response ;
}src/domains/tickets/helpers.php:2213
action
Fires after an agent saves an inbox view.
Parameters of davo_ticket_saved_view_created Parameter Type Description $user_id int Agent's user ID. $view array<string, mixed> The saved view.
add_action Copyadd_action ( 'davo_ticket_saved_view_created' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param array<string, mixed> $view
*/
function my_action_callback ( $user_id , $view ) {
// Your code here.
}src/domains/tickets/services/saved-views.php:134
action
Fires after an agent deletes a saved view.
Parameters of davo_ticket_saved_view_deleted Parameter Type Description $user_id int Agent's user ID. $view array<string, mixed> The deleted view.
add_action Copyadd_action ( 'davo_ticket_saved_view_deleted' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param array<string, mixed> $view
*/
function my_action_callback ( $user_id , $view ) {
// Your code here.
}src/domains/tickets/services/saved-views.php:221
action
Fires after an agent changes a saved view.
Parameters of davo_ticket_saved_view_updated Parameter Type Description $user_id int Agent's user ID. $view array<string, mixed> The updated view.
add_action Copyadd_action ( 'davo_ticket_saved_view_updated' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param array<string, mixed> $view
*/
function my_action_callback ( $user_id , $view ) {
// Your code here.
}src/domains/tickets/services/saved-views.php:188
action
Fires after a customer has opened their ticket and its new replies are marked seen.
Parameters of davo_ticket_seen_by_customer Parameter Type Description $ticket_id int Ticket post ID. $customer_id int The customer's user ID.
add_action Copyadd_action ( 'davo_ticket_seen_by_customer' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $customer_id
*/
function my_action_callback ( $ticket_id , $customer_id ) {
// Your code here.
}src/domains/tickets/repository.php:6132
action
Fires after messages are split out of a ticket into a new one.
Parameters of davo_ticket_split Parameter Type Description $source_ticket_id int Ticket the messages came from. $new_ticket_id int The newly created ticket. $message_ids array<int> Moved message row ids. $actor_id int User who performed the split.
add_action Copyadd_action ( 'davo_ticket_split' , 'my_action_callback' , 10 , 4 );
/**
* @param int $source_ticket_id
* @param int $new_ticket_id
* @param array<int> $message_ids
* @param int $actor_id
*/
function my_action_callback ( $source_ticket_id , $new_ticket_id , $message_ids , $actor_id ) {
// Your code here.
}src/domains/tickets/services/split.php:149
action
Fires after a ticket's status changes.
Parameters of davo_ticket_status_changed Parameter Type Description $ticket_id int Ticket post ID. $from_status string Previous status. $to_status string New status. $actor_id int User ID who made the change (0 = system).
add_action Copyadd_action ( 'davo_ticket_status_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param string $from_status
* @param string $to_status
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $from_status , $to_status , $actor_id ) {
// Your code here.
}src/domains/tickets/services/lifecycle.php:150, and 1 more place
action
Fires after a ticket's tags change, by any path (single-ticket replace, bulk add/remove, or creation-time tagging including auto-matched tags).
Parameters of davo_ticket_tags_changed Parameter Type Description $ticket_id int Ticket post ID. $before array<string> Tag names before the change. $after array<string> Tag names after the change. $actor_id int User ID who made the change (0 = system).
add_action Copyadd_action ( 'davo_ticket_tags_changed' , 'my_action_callback' , 10 , 4 );
/**
* @param int $ticket_id
* @param array<string> $before
* @param array<string> $after
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $before , $after , $actor_id ) {
// Your code here.
}src/domains/tickets/services/tags.php:292
action
Fires after a ticket task was marked done.
Parameters of davo_ticket_task_completed Parameter Type Description $ticket_id int Ticket post ID. $task_id int Task ID. $completed_by int User who completed it.
add_action Copyadd_action ( 'davo_ticket_task_completed' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $task_id
* @param int $completed_by
*/
function my_action_callback ( $ticket_id , $task_id , $completed_by ) {
// Your code here.
}src/domains/tickets/services/tasks.php:185
action
Fires after a task is created on a ticket.
Parameters of davo_ticket_task_created Parameter Type Description $ticket_id int Ticket post ID. $task array New task row.
add_action Copyadd_action ( 'davo_ticket_task_created' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param array $task
*/
function my_action_callback ( $ticket_id , $task ) {
// Your code here.
}src/domains/tickets/services/tasks.php:80
action
Fires after a time entry is edited.
Parameters of davo_ticket_time_entry_updated Parameter Type Description $entry_id int Time entry row id. $minutes int New minutes.
add_action Copyadd_action ( 'davo_ticket_time_entry_updated' , 'my_action_callback' , 10 , 2 );
/**
* @param int $entry_id
* @param int $minutes
*/
function my_action_callback ( $entry_id , $minutes ) {
// Your code here.
}src/domains/tickets/services/time-tracking.php:177
action
Fires after a time entry is logged against a ticket.
Parameters of davo_ticket_time_logged Parameter Type Description $ticket_id int Ticket post ID. $agent_id int Logging agent's user ID. $minutes int Minutes logged.
add_action Copyadd_action ( 'davo_ticket_time_logged' , 'my_action_callback' , 10 , 3 );
/**
* @param int $ticket_id
* @param int $agent_id
* @param int $minutes
*/
function my_action_callback ( $ticket_id , $agent_id , $minutes ) {
// Your code here.
}src/domains/tickets/services/time-tracking.php:102
action
Fires after an agent starts a timer on a ticket.
Parameters of davo_ticket_timer_started Parameter Type Description $ticket_id int Ticket post ID. $agent_id int Agent's user ID.
add_action Copyadd_action ( 'davo_ticket_timer_started' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $agent_id
*/
function my_action_callback ( $ticket_id , $agent_id ) {
// Your code here.
}src/domains/tickets/services/time-tracking.php:493
action
Fires after an agent removes a ticket bookmark.
Parameters of davo_ticket_unbookmarked Parameter Type Description $ticket_id int Ticket post ID. $agent_id int Agent who removed it.
add_action Copyadd_action ( 'davo_ticket_unbookmarked' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $agent_id
*/
function my_action_callback ( $ticket_id , $agent_id ) {
// Your code here.
}src/domains/tickets/services/agent-flags.php:87
action
Fires after a ticket is unlocked.
Parameters of davo_ticket_unlocked Parameter Type Description $ticket_id int Ticket post ID. $actor_id int Agent/admin user ID who unlocked it.
add_action Copyadd_action ( 'davo_ticket_unlocked' , 'my_action_callback' , 10 , 2 );
/**
* @param int $ticket_id
* @param int $actor_id
*/
function my_action_callback ( $ticket_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/lifecycle.php:598
action
Fires after a ticket merge is undone.
Parameters of davo_ticket_unmerged Parameter Type Description $source_ticket_id int Ticket restored to independence. $target_ticket_id int Ticket it had been merged into. $unmerged_by int Agent/admin user ID who performed the unmerge.
add_action Copyadd_action ( 'davo_ticket_unmerged' , 'my_action_callback' , 10 , 3 );
/**
* @param int $source_ticket_id
* @param int $target_ticket_id
* @param int $unmerged_by
*/
function my_action_callback ( $source_ticket_id , $target_ticket_id , $unmerged_by ) {
// Your code here.
}src/domains/tickets/services/merge.php:221
action
Fires after a workflow is created.
Parameters of davo_ticket_workflow_created Parameter Type Description $workflow_id int Workflow id. $actor_id int User who created it.
add_action Copyadd_action ( 'davo_ticket_workflow_created' , 'my_action_callback' , 10 , 2 );
/**
* @param int $workflow_id
* @param int $actor_id
*/
function my_action_callback ( $workflow_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/workflows.php:221
action
Fires after a workflow is deleted.
Parameters of davo_ticket_workflow_deleted Parameter Type Description $workflow_id int Workflow id. $actor_id int User who deleted it.
add_action Copyadd_action ( 'davo_ticket_workflow_deleted' , 'my_action_callback' , 10 , 2 );
/**
* @param int $workflow_id
* @param int $actor_id
*/
function my_action_callback ( $workflow_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/workflows.php:287
action
Fires after a workflow is edited, enabled or disabled.
Parameters of davo_ticket_workflow_updated Parameter Type Description $workflow_id int Workflow id. $actor_id int User who changed it.
add_action Copyadd_action ( 'davo_ticket_workflow_updated' , 'my_action_callback' , 10 , 2 );
/**
* @param int $workflow_id
* @param int $actor_id
*/
function my_action_callback ( $workflow_id , $actor_id ) {
// Your code here.
}src/domains/tickets/services/workflows.php:260
action
Fires when a workflow webhook is given up on.
Parameters of davo_ticket_workflow_webhook_failed Parameter Type Description $envelope array<string, mixed> Payload. $code int Last HTTP status, 0 when the request itself failed.
add_action Copyadd_action ( 'davo_ticket_workflow_webhook_failed' , 'my_action_callback' , 10 , 2 );
/**
* @param array<string, mixed> $envelope
* @param int $code
*/
function my_action_callback ( $envelope , $code ) {
// Your code here.
}src/domains/tickets/services/workflow-actions.php:902, and 2 more places
filter
Filters how many days AI log rows (without text) are kept.
Parameters of davo_tickets_ai_log_retention_days Parameter Type Description $days int Retention in days.
add_filter Copyadd_filter ( 'davo_tickets_ai_log_retention_days' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $days
*/
function my_filter_callback ( $days ) {
// Change $days as needed, then return it.
return $days ;
}src/domains/tickets/crons/ai-log-cleanup.php:81
filter
Filters how many days stored AI prompt and answer text is kept.
Parameters of davo_tickets_ai_text_retention_days Parameter Type Description $days int Retention in days.
add_filter Copyadd_filter ( 'davo_tickets_ai_text_retention_days' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $days
*/
function my_filter_callback ( $days ) {
// Change $days as needed, then return it.
return $days ;
}src/domains/tickets/crons/ai-log-cleanup.php:74
filter
Filters how many days ticket activity is kept; 0 keeps it for ever.
Parameters of davo_tickets_audit_retention_days Parameter Type Description $days int Retention in days.
add_filter Copyadd_filter ( 'davo_tickets_audit_retention_days' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $days
*/
function my_filter_callback ( $days ) {
// Change $days as needed, then return it.
return $days ;
}src/domains/tickets/crons/audit-cleanup.php:66
filter
Filters whether a viewer may block customers from opening tickets.
Parameters of davo_tickets_can_block_customers Parameter Type Description $allowed bool Default: agents who can see customers. $viewer array<string, mixed> Viewer flags from Tickets_Repository::build_viewer().
add_filter Copyadd_filter ( 'davo_tickets_can_block_customers' , 'my_filter_callback' , 10 , 2 );
/**
* @param bool $allowed
* @param array<string, mixed> $viewer
*/
function my_filter_callback ( $allowed , $viewer ) {
// Change $allowed as needed, then return it.
return $allowed ;
}src/domains/tickets/services/customers.php:358
filter
Filters whether a viewer may create customer accounts from the support desk.
Parameters of davo_tickets_can_create_customers Parameter Type Description $allowed bool Default: managers only. $viewer array<string, mixed> Viewer flags from Tickets_Repository::build_viewer().
add_filter Copyadd_filter ( 'davo_tickets_can_create_customers' , 'my_filter_callback' , 10 , 2 );
/**
* @param bool $allowed
* @param array<string, mixed> $viewer
*/
function my_filter_callback ( $allowed , $viewer ) {
// Change $allowed as needed, then return it.
return $allowed ;
}src/domains/tickets/services/customer-accounts.php:57
filter
Filters the extra sections shown on a customer's profile — purchases, membership, CRM data from an integration.
Each section is array{id: string, title: string, items: array<int, array{label: string, value: string, url?: string}>}. Values are plain text; the profile escapes them.
Parameters of davo_tickets_customer_profile_sections Parameter Type Description $sections array<int, array<string, mixed>> Sections added so far (empty by default). $user_id int WordPress user ID, or 0 for a guest. $email string The customer's email address.
add_filter Copyadd_filter ( 'davo_tickets_customer_profile_sections' , 'my_filter_callback' , 10 , 3 );
/**
* @param array<int, array<string, mixed>> $sections
* @param int $user_id
* @param string $email
*/
function my_filter_callback ( $sections , $user_id , $email ) {
// Change $sections as needed, then return it.
return $sections ;
}src/domains/tickets/services/customers.php:183
filter
Filters how many times the per-identity creation limit a single address may submit as guests. Higher than 1 because an office or a mobile carrier can put many real customers behind one address; the per-identity limit still applies to each of them separately.
Parameters of davo_tickets_guest_ip_rate_limit_multiplier Parameter Type Description $multiplier int Default 4.
add_filter Copyadd_filter ( 'davo_tickets_guest_ip_rate_limit_multiplier' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $multiplier
*/
function my_filter_callback ( $multiplier ) {
// Change $multiplier as needed, then return it.
return $multiplier ;
}src/domains/tickets/services/creation.php:254
filter
Filters the post statuses searched when importing tickets from Awesome Support. Extend it if your site used other statuses.
Parameters of davo_tickets_import_awesome_support_statuses Parameter Type Description $statuses string[] Post status slugs.
Returns string[]
add_filter Copyadd_filter ( 'davo_tickets_import_awesome_support_statuses' , 'my_filter_callback' , 10 , 1 );
/**
* @param string[] $statuses
*/
function my_filter_callback ( $statuses ) {
// Change $statuses as needed, then return it.
return $statuses ;
}src/domains/tickets/importers/awesome-support.php:59
filter
Filters how many records one ticket import batch handles. Defaults to 50 for database importers and 5 for the others.
Parameters of davo_tickets_import_batch_size Parameter Type Description $size int Batch size. $provider string The importer's provider ID.
Returns int
add_filter Copyadd_filter ( 'davo_tickets_import_batch_size' , 'my_filter_callback' , 10 , 2 );
/**
* @param int $size
* @param string $provider
*/
function my_filter_callback ( $size , $provider ) {
// Change $size as needed, then return it.
return $size ;
}src/domains/tickets/services/import.php:1372
action
Fires when an import job completes.
Parameters of davo_tickets_import_completed Parameter Type Description $job_id int Job id.
add_action Copyadd_action ( 'davo_tickets_import_completed' , 'my_action_callback' , 10 , 1 );
/**
* @param int $job_id
*/
function my_action_callback ( $job_id ) {
// Your code here.
}src/domains/tickets/services/import.php:1660
filter
Filters how many days ticket import logs are kept. Defaults to 90.
Parameters of davo_tickets_import_log_retention_days Parameter Type Description $days int Retention in days.
Returns int
add_filter Copyadd_filter ( 'davo_tickets_import_log_retention_days' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $days
*/
function my_filter_callback ( $days ) {
// Change $days as needed, then return it.
return $days ;
}src/domains/tickets/services/import.php:1229
filter
Filter whether import progress emails are sent.
Parameters of davo_tickets_import_send_notifications Parameter Type Description $send bool Whether to send. $job_id int Job id. $event string completed, failed or auto_paused.
add_filter Copyadd_filter ( 'davo_tickets_import_send_notifications' , 'my_filter_callback' , 10 , 3 );
/**
* @param bool $send
* @param int $job_id
* @param string $event
*/
function my_filter_callback ( $send , $job_id , $event ) {
// Change $send as needed, then return it.
return $send ;
}src/domains/tickets/services/import.php:1137
filter
Filters the time budget, in seconds, for one ticket import batch when none is given. Defaults to 20.
Parameters of davo_tickets_import_time_budget Parameter Type Description $seconds int Time budget in seconds.
Returns int
add_filter Copyadd_filter ( 'davo_tickets_import_time_budget' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $seconds
*/
function my_filter_callback ( $seconds ) {
// Change $seconds as needed, then return it.
return $seconds ;
}src/domains/tickets/services/import.php:1295
filter
Filter the importers. Add an object implementing Tickets_Importer_Interface.
Parameters of davo_tickets_importers Parameter Type Description $list array<int, Tickets_Importer_Interface> Importers.
add_filter Copyadd_filter ( 'davo_tickets_importers' , 'my_filter_callback' , 10 , 1 );
/**
* @param array<int, Tickets_Importer_Interface> $list
*/
function my_filter_callback ( $list ) {
// Change $list as needed, then return it.
return $list ;
}src/domains/tickets/importers/registry.php:54
filter
Filters the user an anonymous sender's inbound attachments are stored under.
Parameters of davo_tickets_inbound_attachment_uploader Parameter Type Description $uploader int User ID chosen. $message_id int Message the files belong to.
add_filter Copyadd_filter ( 'davo_tickets_inbound_attachment_uploader' , 'my_filter_callback' , 10 , 2 );
/**
* @param int $uploader
* @param int $message_id
*/
function my_filter_callback ( $uploader , $message_id ) {
// Change $uploader as needed, then return it.
return $uploader ;
}src/domains/tickets/attachments.php:380
filter
Filters the plain-text body before it is stored, so quoted replies and signatures can be stripped.
Parameters of davo_tickets_inbound_clean_body Parameter Type Description $text string Plain-text body. $email array<string, mixed> Normalized email.
add_filter Copyadd_filter ( 'davo_tickets_inbound_clean_body' , 'my_filter_callback' , 10 , 2 );
/**
* @param string $text
* @param array<string, mixed> $email
*/
function my_filter_callback ( $text , $email ) {
// Change $text as needed, then return it.
return $text ;
}src/domains/tickets/email/inbound-processor.php:411
action
Fires when an inbound email could not be turned into a ticket or reply.
Parameters of davo_tickets_inbound_email_failed Parameter Type Description $code string Machine-readable reason. $reason string Human-readable reason. $email array<string, mixed> The normalized email (no attachment bodies).
add_action Copyadd_action ( 'davo_tickets_inbound_email_failed' , 'my_action_callback' , 10 , 3 );
/**
* @param string $code
* @param string $reason
* @param array<string, mixed> $email
*/
function my_action_callback ( $code , $reason , $email ) {
// Your code here.
}src/domains/tickets/email/inbound-processor.php:356
filter
Filters whether an inbound email is treated as automatically generated.
Parameters of davo_tickets_inbound_is_auto_generated Parameter Type Description $flag bool Detection result. $email array<string, mixed> Normalized email.
add_filter Copyadd_filter ( 'davo_tickets_inbound_is_auto_generated' , 'my_filter_callback' , 10 , 2 );
/**
* @param bool $flag
* @param array<string, mixed> $email
*/
function my_filter_callback ( $flag , $email ) {
// Change $flag as needed, then return it.
return $flag ;
}src/domains/tickets/email/inbound-processor.php:769
filter
Filters how many days inbound email log rows are kept.
Parameters of davo_tickets_inbound_log_retention_days Parameter Type Description $days int Retention in days.
add_filter Copyadd_filter ( 'davo_tickets_inbound_log_retention_days' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $days
*/
function my_filter_callback ( $days ) {
// Change $days as needed, then return it.
return $days ;
}src/domains/tickets/crons/inbound-log-cleanup.php:69
filter
Filters the maximum stored body length, in characters.
Parameters of davo_tickets_inbound_max_body_length Parameter Type Description $max int Maximum length.
add_filter Copyadd_filter ( 'davo_tickets_inbound_max_body_length' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $max
*/
function my_filter_callback ( $max ) {
// Change $max as needed, then return it.
return $max ;
}src/domains/tickets/email/inbound-processor.php:418
filter
Filters whether the sender of an inbound email counts as authenticated. Agents may reply by email only when this is true.
Parameters of davo_tickets_inbound_sender_verified Parameter Type Description $verified bool Provider-derived result. $email array<string, mixed> Normalized email. $provider string postmark, sendgrid or mailgun.
add_filter Copyadd_filter ( 'davo_tickets_inbound_sender_verified' , 'my_filter_callback' , 10 , 3 );
/**
* @param bool $verified
* @param array<string, mixed> $email
* @param string $provider
*/
function my_filter_callback ( $verified , $email , $provider ) {
// Change $verified as needed, then return it.
return $verified ;
}src/domains/tickets/email/provider-adapters.php:279
filter
Filters how many days messaging channel log rows are kept.
Parameters of davo_tickets_integration_log_retention_days Parameter Type Description $days int Retention in days.
add_filter Copyadd_filter ( 'davo_tickets_integration_log_retention_days' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $days
*/
function my_filter_callback ( $days ) {
// Change $days as needed, then return it.
return $days ;
}src/domains/tickets/crons/integration-log-cleanup.php:68
filter
Filters the integration health rows shown on the Integrations status page.
A plugin that adds its own integration can append a row with the same shape (key, state, endpoint, issues); its label comes from the key, so register a matching label in the page's filter.
Parameters of davo_tickets_integrations_status Parameter Type Description $statuses array<int, array<string, mixed>> Rows built above.
add_filter Copyadd_filter ( 'davo_tickets_integrations_status' , 'my_filter_callback' , 10 , 1 );
/**
* @param array<int, array<string, mixed>> $statuses
*/
function my_filter_callback ( $statuses ) {
// Change $statuses as needed, then return it.
return $statuses ;
}src/domains/tickets/services/integrations-status.php:76
filter
Let external integrations (Akismet, a custom heuristic, a third-party anti-spam service) mark a ticket submission as spam before it's ever inserted.
Parameters of davo_tickets_is_spam Parameter Type Description $is_spam bool Default false. $subject string Sanitized ticket subject. $content string Sanitized ticket content. $customer_email string Submitter's email address.
add_filter Copyadd_filter ( 'davo_tickets_is_spam' , 'my_filter_callback' , 10 , 4 );
/**
* @param bool $is_spam
* @param string $subject
* @param string $content
* @param string $customer_email
*/
function my_filter_callback ( $is_spam , $subject , $content , $customer_email ) {
// Change $is_spam as needed, then return it.
return $is_spam ;
}src/domains/tickets/services/creation.php:238
filter
Filters the WP_Query args used to list tickets, the same extension point Questions offers for its own list queries.
Parameters of davo_tickets_list_query_args Parameter Type Description $query_args array<string, mixed> Query args built so far. $args array<string, mixed> Original filter args from the request.
add_filter Copyadd_filter ( 'davo_tickets_list_query_args' , 'my_filter_callback' , 10 , 2 );
/**
* @param array<string, mixed> $query_args
* @param array<string, mixed> $args
*/
function my_filter_callback ( $query_args , $args ) {
// Change $query_args as needed, then return it.
return $query_args ;
}src/domains/tickets/repository.php:1878
filter
Filters whether Davo may add a full-text index to its messages table and use it for searching message text. Off by default. Without it a search reads every message; with it a search finds whole words and the start of words quickly, but no longer finds text in the middle of a word. Building the index on a very large table takes a while, so it is built in the background.
Parameters of davo_tickets_manage_message_fulltext_index Parameter Type Description $manage bool Whether to build and use the index.
add_filter Copyadd_filter ( 'davo_tickets_manage_message_fulltext_index' , 'my_filter_callback' , 10 , 1 );
/**
* @param bool $manage
*/
function my_filter_callback ( $manage ) {
// Change $manage as needed, then return it.
return $manage ;
}src/domains/tickets/database.php:4529, and 2 more places
filter
Filters whether Davo may add its own index to the WordPress postmeta table. Off by default, because the table is shared with every other plugin and a large one can take a while to alter.
Parameters of davo_tickets_manage_postmeta_index Parameter Type Description $manage bool Whether to create the index.
add_filter Copyadd_filter ( 'davo_tickets_manage_postmeta_index' , 'my_filter_callback' , 10 , 1 );
/**
* @param bool $manage
*/
function my_filter_callback ( $manage ) {
// Change $manage as needed, then return it.
return $manage ;
}src/domains/tickets/database.php:4470
filter
Filters whether the MCP endpoint accepts application passwords only. Turning it off lets a browser session use the endpoint, which a page the admin is visiting could then call; leave it on unless you have a reason.
Parameters of davo_tickets_mcp_require_application_password Parameter Type Description $require bool Whether to require an application password.
add_filter Copyadd_filter ( 'davo_tickets_mcp_require_application_password' , 'my_filter_callback' , 10 , 1 );
/**
* @param bool $require
*/
function my_filter_callback ( $require ) {
// Change $require as needed, then return it.
return $require ;
}src/domains/tickets/services/mcp.php:72
filter
Filters the raw webhook payload into the normalized shape Tickets_Inbound_Email_Processor::process() expects.
Parameters of davo_tickets_normalize_inbound_email Parameter Type Description $normalized array<string, mixed> Defaults to the raw JSON params unchanged. $request WP_REST_Request The original request.
add_filter Copyadd_filter ( 'davo_tickets_normalize_inbound_email' , 'my_filter_callback' , 10 , 2 );
/**
* @param array<string, mixed> $normalized
* @param WP_REST_Request $request
*/
function my_filter_callback ( $normalized , $request ) {
// Change $normalized as needed, then return it.
return $normalized ;
}src/domains/tickets/routes.php:3055
filter
Filters the sign-in address the ticket portal links to.
Parameters of davo_tickets_portal_login_url Parameter Type Description $url string Default WordPress login URL. $redirect string Address to return to after signing in.
add_filter Copyadd_filter ( 'davo_tickets_portal_login_url' , 'my_filter_callback' , 10 , 2 );
/**
* @param string $url
* @param string $redirect
*/
function my_filter_callback ( $url , $redirect ) {
// Change $url as needed, then return it.
return $url ;
}src/domains/tickets/helpers.php:1299
filter
Filters the registration address the ticket portal links to; return an empty string for none.
Parameters of davo_tickets_portal_register_url Parameter Type Description $url string Default WordPress registration URL, empty when registration is closed.
add_filter Copyadd_filter ( 'davo_tickets_portal_register_url' , 'my_filter_callback' , 10 , 1 );
/**
* @param string $url
*/
function my_filter_callback ( $url ) {
// Change $url as needed, then return it.
return $url ;
}src/domains/tickets/helpers.php:1316
filter
Filters one agent's report before it is cached and returned.
Parameters of davo_tickets_report_agent Parameter Type Description $report array<string, mixed> Report built above. $agent_id int Agent user ID. $range array<string, mixed> from/to days the report covers and their days count.
add_filter Copyadd_filter ( 'davo_tickets_report_agent' , 'my_filter_callback' , 10 , 3 );
/**
* @param array<string, mixed> $report
* @param int $agent_id
* @param array<string, mixed> $range
*/
function my_filter_callback ( $report , $agent_id , $range ) {
// Change $report as needed, then return it.
return $report ;
}src/domains/tickets/services/reports.php:417
filter
Filters the overview report before it is cached and returned.
Parameters of davo_tickets_report_overview Parameter Type Description $report array<string, mixed> Report built above. $range array<string, mixed> from/to days the report covers, in the site's time zone, and their days count.
add_filter Copyadd_filter ( 'davo_tickets_report_overview' , 'my_filter_callback' , 10 , 2 );
/**
* @param array<string, mixed> $report
* @param array<string, mixed> $range
*/
function my_filter_callback ( $report , $range ) {
// Change $report as needed, then return it.
return $report ;
}src/domains/tickets/services/reports.php:151
filter
Filters the team report before it is cached and returned.
Parameters of davo_tickets_report_team Parameter Type Description $report array<string, mixed> Report built above. $range array<string, mixed> from/to days the report covers and their days count.
add_filter Copyadd_filter ( 'davo_tickets_report_team' , 'my_filter_callback' , 10 , 2 );
/**
* @param array<string, mixed> $report
* @param array<string, mixed> $range
*/
function my_filter_callback ( $report , $range ) {
// Change $report as needed, then return it.
return $report ;
}src/domains/tickets/services/reports.php:545
filter
Filters whether an email reply must be proven genuine before it is added to a ticket. On by default: a reply that the mail provider did not authenticate and that does not quote an email this site signed is not accepted onto the ticket, and its sender gets a ticket of their own. Return false to accept replies by sender address alone.
Parameters of davo_tickets_require_reply_proof Parameter Type Description $require bool Whether proof is required. Default true. $ticket_id int The ticket the reply is for. $from_email string The sender's address.
Returns bool
add_filter Copyadd_filter ( 'davo_tickets_require_reply_proof' , 'my_filter_callback' , 10 , 3 );
/**
* @param bool $require
* @param int $ticket_id
* @param string $from_email
*/
function my_filter_callback ( $require , $ticket_id , $from_email ) {
// Change $require as needed, then return it.
return $require ;
}src/domains/tickets/email/inbound-processor.php:697
filter
Resolve this message's attachment rows to absolute, locally-readable file paths suitable for wp_mail()'s $attachments parameter.
Implemented in Tickets_Attachments::resolve_attachment_paths() — confirmed against the real Attachments domain that every row here is a genuine local WordPress attachment post, resolved via the same core \get_attached_file() call Attachments_Repository's own download path uses. Still a filter, not a direct call, so a site needing different resolution (e.g. attachments moved to remote storage by some other plugin) can override it.
Parameters of davo_tickets_resolve_attachment_paths Parameter Type Description $paths array<string> Empty by default. $attachment_rows array<int, array<string,mixed>> Rows from get_for_target_unguarded().
add_filter Copyadd_filter ( 'davo_tickets_resolve_attachment_paths' , 'my_filter_callback' , 10 , 2 );
/**
* @param array<string> $paths
* @param array<int, array<string,mixed>> $attachment_rows
*/
function my_filter_callback ( $paths , $attachment_rows ) {
// Change $paths as needed, then return it.
return $paths ;
}src/domains/tickets/services/messages.php:550
action
Fires after a retention run anonymized tickets.
Parameters of davo_tickets_retention_run Parameter Type Description $ids int[] Ticket post IDs anonymized in this run. $days int The configured retention period.
add_action Copyadd_action ( 'davo_tickets_retention_run' , 'my_action_callback' , 10 , 2 );
/**
* @param int[] $ids
* @param int $days
*/
function my_action_callback ( $ids , $days ) {
// Your code here.
}src/domains/tickets/crons/retention.php:96
filter
Filters the setup checklist before it is returned, so an add-on can append a step of the same shape.
Parameters of davo_tickets_setup_steps Parameter Type Description $steps array<int, array{key: string, done: bool, optional: bool}> Steps built above.
add_filter Copyadd_filter ( 'davo_tickets_setup_steps' , 'my_filter_callback' , 10 , 1 );
/**
* @param array<int, array{key: string, done: bool, optional: bool}> $steps
*/
function my_filter_callback ( $steps ) {
// Change $steps as needed, then return it.
return $steps ;
}src/domains/tickets/services/setup.php:74
filter
Stores an inbound email's attachments against the message just created.
Parameters of davo_tickets_store_inbound_attachments Parameter Type Description $stored array<mixed> Empty array; a handler returns what it stored. $attachments array<mixed> Attachments from the normalized email. $message_id int Stored message row id. $customer_id int Resolved account ID, or 0.
add_filter Copyadd_filter ( 'davo_tickets_store_inbound_attachments' , 'my_filter_callback' , 10 , 4 );
/**
* @param array<mixed> $stored
* @param array<mixed> $attachments
* @param int $message_id
* @param int $customer_id
*/
function my_filter_callback ( $stored , $attachments , $message_id , $customer_id ) {
// Change $stored as needed, then return it.
return $stored ;
}src/domains/tickets/email/inbound-processor.php:602
filter
Filters the longest single time entry, in minutes.
Parameters of davo_tickets_time_entry_max_minutes Parameter Type Description $max int Maximum minutes.
add_filter Copyadd_filter ( 'davo_tickets_time_entry_max_minutes' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $max
*/
function my_filter_callback ( $max ) {
// Change $max as needed, then return it.
return $max ;
}src/domains/tickets/services/time-tracking.php:280
filter
Filters whether CC addresses from an unauthenticated reply to an existing ticket are added to it. Leave off unless inbound mail is already authenticated upstream (SPF/DKIM enforcement at your gateway).
Parameters of davo_tickets_trust_unverified_reply_cc Parameter Type Description $trust bool Whether to trust the addresses. $ticket_id int Ticket post ID. $email array<string, mixed> Normalized email.
add_filter Copyadd_filter ( 'davo_tickets_trust_unverified_reply_cc' , 'my_filter_callback' , 10 , 3 );
/**
* @param bool $trust
* @param int $ticket_id
* @param array<string, mixed> $email
*/
function my_filter_callback ( $trust , $ticket_id , $email ) {
// Change $trust as needed, then return it.
return $trust ;
}src/domains/tickets/email/inbound-processor.php:580
action
Fires after a deleted user's tickets, tasks and canned responses were released.
Parameters of davo_tickets_user_released Parameter Type Description $user_id int Deleted user ID. $reassign_to int Agent who took over their tickets, 0 if unassigned.
add_action Copyadd_action ( 'davo_tickets_user_released' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param int $reassign_to
*/
function my_action_callback ( $user_id , $reassign_to ) {
// Your code here.
}src/domains/tickets/services/user-cleanup.php:95