Skip to content

Actions and filters

Tickets: 126 hooks.

125 of the 126 have a description in the source.

82 actions44 filters

action

davo_customers_merged

Fires after one customer was merged into another.

Parameters of davo_customers_merged
ParameterTypeDescription
$transfer_idintTransfer row id.
$from_keystringSource customer key.
$to_keystringReceiving customer key.
$countintTickets moved.
$actor_idintManager who merged them.
add_action
add_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

davo_register_roles

Fires when roles are registered, so a domain can add its own through the Role_Manager.

add_action
add_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

davo_register_ticket_statuses

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
ParameterTypeDescription
$registryTickets_Status_RegistryShared status registry instance.
add_action
add_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

davo_ticket_agent_added

Fires after an account was added to the support team.

Parameters of davo_ticket_agent_added
ParameterTypeDescription
$user_idintThe new agent.
$actor_idintPerson who added them.
add_action
add_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

davo_ticket_agent_departments_changed

Fires after an agent's department membership changes.

Parameters of davo_ticket_agent_departments_changed
ParameterTypeDescription
$agent_idintAgent's user ID.
$department_idsarray<int>New department term IDs.
add_action
add_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

davo_ticket_agent_group_created

Fires after an agent group is created.

Parameters of davo_ticket_agent_group_created
ParameterTypeDescription
$group_idintNew group id.
$namestringGroup name.
$agent_idsint[]Member agent user IDs.
$actor_idintUser who created it.
add_action
add_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

davo_ticket_agent_group_deleted

Fires after an agent group is deleted.

Parameters of davo_ticket_agent_group_deleted
ParameterTypeDescription
$group_idintDeleted group id.
$grouparrayThe group as it was, including its member IDs.
$actor_idintUser who deleted it.
add_action
add_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

davo_ticket_agent_group_updated

Fires after an agent group is updated.

Parameters of davo_ticket_agent_group_updated
ParameterTypeDescription
$group_idintGroup id.
$grouparrayThe group as it was before the change.
$actor_idintUser who changed it.
add_action
add_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

davo_ticket_agent_inboxes_changed

Fires after the inboxes an agent is limited to were changed.

Parameters of davo_ticket_agent_inboxes_changed
ParameterTypeDescription
$agent_idintAgent user ID.
$inbox_idsint[]Inbox term IDs the agent is limited to; empty for no limit.
add_action
add_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

davo_ticket_agent_permissions_changed

Fires after an agent's individual permissions changed.

Parameters of davo_ticket_agent_permissions_changed
ParameterTypeDescription
$user_idintThe person.
$appliedarray<string,bool>API key => new state.
$actor_idintWho changed them.
add_action
add_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

davo_ticket_agent_removed

Fires after an agent was taken off the team.

Parameters of davo_ticket_agent_removed
ParameterTypeDescription
$user_idintThe person.
$actor_idintWho removed them.
$releasedintTickets that were assigned to them.
$reassign_tointAgent who took the tickets over, 0 if unassigned.
add_action
add_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

davo_ticket_agent_status_changed

Fires after an agent was switched off or on.

Parameters of davo_ticket_agent_status_changed
ParameterTypeDescription
$user_idintThe person.
$disabledboolTrue when switched off.
$actor_idintWho did it.
$releasedintTickets released from them when switched off.
add_action
add_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

davo_ticket_anonymized

Fires after a ticket's customer data was anonymized.

Parameters of davo_ticket_anonymized
ParameterTypeDescription
$ticket_idintTicket post ID.
add_action
add_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

davo_ticket_assignment_changed

Fires after a ticket's primary assignee changes.

Parameters of davo_ticket_assignment_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$previous_agentintPrevious assignee (0 if unassigned).
$agent_idintNew assignee (0 if unassigned).
$actor_idintUser ID who made the change.
$reasonstringHandover reason, empty when none was given.
add_action
add_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

davo_ticket_auto_closed

Fires after a ticket is closed by the auto-close job.

Parameters of davo_ticket_auto_closed
ParameterTypeDescription
$ticket_idintTicket post ID.
$daysintInactivity period in days.
add_action
add_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

davo_ticket_before_delete

Fires before a ticket is permanently deleted.

Parameters of davo_ticket_before_delete
ParameterTypeDescription
$ticket_idintTicket post ID.
$actor_idintUser performing the deletion.
add_action
add_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

davo_ticket_bookmarked

Fires after an agent bookmarks a ticket.

Parameters of davo_ticket_bookmarked
ParameterTypeDescription
$ticket_idintTicket post ID.
$agent_idintAgent who bookmarked it.
add_action
add_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

davo_ticket_canned_response_placeholders

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
ParameterTypeDescription
$placeholdersarray<string, string>Token => replacement value.
$ticketWP_PostTicket being resolved against.
$agent_idintActing agent's user ID.
add_filter
add_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

davo_ticket_channel_delivered

Fires after a channel message is delivered.

Parameters of davo_ticket_channel_delivered
ParameterTypeDescription
$providerstringProvider slug.
$eventstringEvent slug.
$ticket_idintTicket post ID.
add_action
add_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

davo_ticket_channel_failed

Fires when a channel message is given up on.

Parameters of davo_ticket_channel_failed
ParameterTypeDescription
$providerstringProvider slug.
$eventstringEvent slug.
$ticket_idintTicket post ID.
$reasonstringWhy the last attempt failed.
add_action
add_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

davo_ticket_channel_message

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
ParameterTypeDescription
$textstringMessage text.
$slugstringEvent slug, e.g. created.
$providerstringProvider slug, e.g. slack.
$dataarray<string, mixed>The event's payload data.
add_filter
add_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

davo_ticket_channel_webhook_url

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
ParameterTypeDescription
$urlstringAddress built from the REST root.
$pathstringRoute path under the Davo namespace.
add_filter
add_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

davo_ticket_client_priority_changed

Fires after a ticket's customer-reported priority changes.

Parameters of davo_ticket_client_priority_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$from_prioritystringPrevious client priority.
$to_prioritystringNew client priority.
$actor_idintUser ID who made the change.
add_action
add_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

davo_ticket_collaborators_changed

Fires after a ticket's collaborators were replaced.

Parameters of davo_ticket_collaborators_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$collaboratorsint[]User IDs of the collaborators now on the ticket.
$actor_idintUser who made the change.
add_action
add_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

davo_ticket_created

Fires after a new ticket is created (any source).

Parameters of davo_ticket_created
ParameterTypeDescription
$ticket_idintNew ticket post ID.
$customer_idintCreating customer's user ID (0 for a guest).
add_action
add_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

davo_ticket_customer_blocked

Fires after an agent blocks a customer from opening tickets.

Parameters of davo_ticket_customer_blocked
ParameterTypeDescription
$keystringCustomer identity key (u{id} or g{email}).
$author_idintAgent who blocked them.
$reasonstringInternal reason, may be empty.
add_action
add_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

davo_ticket_customer_changed

Fires after one ticket's customer changed.

Parameters of davo_ticket_customer_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$from_keystringPrevious customer key (u{id} or g{email}).
$to_keystringNew customer key.
$actor_idintManager who made the change.
add_action
add_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

davo_ticket_customer_note_added

Fires after an agent adds a note about a customer.

Parameters of davo_ticket_customer_note_added
ParameterTypeDescription
$note_idintNew note row id.
$keystringCustomer identity key (u{id} or g{email}).
$author_idintAgent who wrote it.
add_action
add_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

davo_ticket_customer_note_deleted

Fires after a customer note is deleted.

Parameters of davo_ticket_customer_note_deleted
ParameterTypeDescription
$note_idintDeleted note row id.
$keystringCustomer identity key.
$actorintAgent who deleted it.
add_action
add_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

davo_ticket_customer_transfer_undone

Fires after a customer transfer is undone.

Parameters of davo_ticket_customer_transfer_undone
ParameterTypeDescription
$transfer_idintTransfer row id.
$restoredintTickets put back.
$skippedintTickets left alone because their customer changed again.
$actor_idintManager who undid it.
add_action
add_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

davo_ticket_customer_unblocked

Fires after an agent lets a blocked customer open tickets again.

Parameters of davo_ticket_customer_unblocked
ParameterTypeDescription
$keystringCustomer identity key (u{id} or g{email}).
$author_idintAgent who lifted the block.
add_action
add_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

davo_ticket_deleted

Fires after a ticket and everything kept for it was permanently deleted.

Parameters of davo_ticket_deleted
ParameterTypeDescription
$ticket_idintTicket post ID that no longer exists.
$actor_idintUser who deleted it.
add_action
add_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

davo_ticket_department_created

Fires after a department is created.

Parameters of davo_ticket_department_created
ParameterTypeDescription
$term_idintDepartment term ID.
add_action
add_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

davo_ticket_department_deleted

Fires after a department is deleted.

Parameters of davo_ticket_department_deleted
ParameterTypeDescription
$term_idintDepartment term ID.
add_action
add_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

davo_ticket_draft_approved

Fires after a draft reply is approved and sent.

Parameters of davo_ticket_draft_approved
ParameterTypeDescription
$ticket_idintTicket post ID.
$message_idintMessage row id (unchanged — same row, promoted in place).
$draft_author_idintAgent who originally wrote the draft.
$approving_agent_idintAgent who approved and sent it.
add_action
add_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

davo_ticket_draft_reply_saved

Fires after an agent saves a draft reply, pending approval.

Parameters of davo_ticket_draft_reply_saved
ParameterTypeDescription
$ticket_idintTicket post ID.
$message_idintNew draft message row id.
$author_idintAuthoring agent's user ID.
add_action
add_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

davo_ticket_estimated_time_changed

Fires after a ticket's estimated time changes.

Parameters of davo_ticket_estimated_time_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$minutesintNew estimate in minutes (0 = cleared).
$previousintPrevious estimate in minutes (0 = none).
$agent_idintAgent who changed it.
add_action
add_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

davo_ticket_feedback_submitted

Fires after a customer submits a satisfaction rating.

Parameters of davo_ticket_feedback_submitted
ParameterTypeDescription
$ticket_idintTicket post ID.
$ratingint1-5.
$agent_idintAssigned agent at the time of rating (0 if unassigned).
add_action
add_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

davo_ticket_guest_access_revoked

Fires after an agent revokes a guest ticket's emailed links.

Parameters of davo_ticket_guest_access_revoked
ParameterTypeDescription
$ticket_idintTicket post ID.
$actor_idintAgent's user ID.
add_action
add_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

davo_ticket_imported

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
ParameterTypeDescription
$ticket_idintNew ticket post id.
$providerstringImporter key.
$source_idstringThe ticket's id in the source.
$job_idintImport job id.
add_action
add_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

davo_ticket_inbox_archived_changed

Fires after an inbox was archived or restored.

Parameters of davo_ticket_inbox_archived_changed
ParameterTypeDescription
$term_idintInbox term ID.
$archivedboolWhether it is archived now.
add_action
add_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

davo_ticket_inbox_changed

Fires after a ticket moves to another inbox.

Parameters of davo_ticket_inbox_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$oldintPrevious inbox term ID, 0 when it had none.
$inbox_idintNew inbox term ID.
$actor_idintUser who moved it, 0 for the system.
add_action
add_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

davo_ticket_inbox_created

Fires after an inbox is created.

Parameters of davo_ticket_inbox_created
ParameterTypeDescription
$term_idintInbox term ID.
add_action
add_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

davo_ticket_inbox_default_changed

Fires after the default inbox changed.

Parameters of davo_ticket_inbox_default_changed
ParameterTypeDescription
$term_idintNew default inbox term ID.
$previousintPrevious default inbox term ID, 0 for none.
add_action
add_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

davo_ticket_inbox_deleted

Fires after an inbox was deleted and its tickets moved.

Parameters of davo_ticket_inbox_deleted
ParameterTypeDescription
$term_idintDeleted inbox term ID.
$fallback_idintInbox term ID the tickets went to.
add_action
add_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

davo_ticket_inbox_updated

Fires after an inbox is edited.

Parameters of davo_ticket_inbox_updated
ParameterTypeDescription
$term_idintInbox term ID.
add_action
add_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

davo_ticket_locked

Fires after a ticket is locked.

Parameters of davo_ticket_locked
ParameterTypeDescription
$ticket_idintTicket post ID.
$actor_idintAgent/admin user ID who locked it.
$reasonstringLock reason slug/text.
add_action
add_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

davo_ticket_merged

Fires after two tickets are merged.

Parameters of davo_ticket_merged
ParameterTypeDescription
$source_ticket_idintTicket merged away.
$target_ticket_idintCanonical ticket.
$merged_byintAgent/admin user ID who performed the merge.
add_action
add_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

davo_ticket_message_deleted

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
add_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

davo_ticket_message_edited

Fires after a reply/note is edited.

Parameters of davo_ticket_message_edited
ParameterTypeDescription
$ticket_idintTicket post ID.
$message_idintEdited message row id.
$editor_idintUser ID who made the edit.
add_action
add_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

davo_ticket_note_added

Fires after a private note is added to a ticket.

Parameters of davo_ticket_note_added
ParameterTypeDescription
$ticket_idintTicket post ID.
$message_idintNew message row id.
$author_idintAuthoring agent/admin user ID.
add_action
add_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

davo_ticket_outbound_webhook_delivered

Fires after an outgoing webhook delivery succeeds.

Parameters of davo_ticket_outbound_webhook_delivered
ParameterTypeDescription
$envelopearray<string, mixed>Payload that was delivered.
$codeintResponse status code.
$attemptintWhich attempt succeeded.
add_action
add_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

davo_ticket_outbound_webhook_failed

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
ParameterTypeDescription
$envelopearray<string, mixed>Payload that could not be delivered.
$reasonstringWhy the last attempt failed.
$attemptintHow many attempts were made.
add_action
add_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

davo_ticket_outbound_webhook_payload

Filters the outgoing webhook payload before it is queued.

Return an empty array to skip this delivery.

Parameters of davo_ticket_outbound_webhook_payload
ParameterTypeDescription
$envelopearray<string, mixed>Payload: id, event, created_at, site_url, data.
$slugstringEvent slug, e.g. created.
add_filter
add_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

davo_ticket_placeholder_catalog

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
ParameterTypeDescription
$catalogarray<int, array{token: string, description: string, group: string}>Picker entries.
add_filter
add_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

davo_ticket_presence_changed

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
ParameterTypeDescription
$ticket_idintTicket post ID.
$user_idintAgent whose presence changed.
$viewersarray<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
add_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

davo_ticket_priority_changed

Fires after a ticket's priority changes.

Parameters of davo_ticket_priority_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$from_prioritystringPrevious priority.
$to_prioritystringNew priority.
$actor_idintUser ID who made the change.
add_action
add_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

davo_ticket_product_changed

Fires after a ticket's product changes.

Parameters of davo_ticket_product_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$previous_productintProduct it had, or 0.
$product_idintProduct it has now, or 0.
$actor_idintUser who changed it.
add_action
add_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

davo_ticket_product_created

Fires after a product is created.

Parameters of davo_ticket_product_created
ParameterTypeDescription
$product_idintProduct row id.
$titlestringProduct name.
$actor_idintUser who created it.
add_action
add_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

davo_ticket_product_deleted

Fires after a product is deleted.

Parameters of davo_ticket_product_deleted
ParameterTypeDescription
$product_idintProduct row id.
$titlestringName it had.
$actor_idintUser who deleted it.
add_action
add_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

davo_ticket_product_updated

Fires after a product is renamed or re-described.

Parameters of davo_ticket_product_updated
ParameterTypeDescription
$product_idintProduct row id.
$titlestringProduct name now.
$actor_idintUser who changed it.
add_action
add_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

davo_ticket_purchase_code_set

Fires after a customer sets or corrects the purchase code on a ticket.

Parameters of davo_ticket_purchase_code_set
ParameterTypeDescription
$ticket_idintTicket post ID.
$actor_idintCustomer's user ID.
add_action
add_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

davo_ticket_reopened

Fires after a ticket is reopened.

Parameters of davo_ticket_reopened
ParameterTypeDescription
$ticket_idintTicket post ID.
$actor_idintUser ID who reopened it (0 = system).
add_action
add_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

davo_ticket_reply_added

Fires after any public reply/email message is added to a ticket.

Parameters of davo_ticket_reply_added
ParameterTypeDescription
$ticket_idintTicket post ID.
$message_idintNew message row id.
$author_idintAuthoring user ID.
$author_typestringOne of Tickets_Helpers::AUTHOR_TYPE_*.
add_action
add_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

davo_ticket_response

Filters a ticket's REST response, the same extension point Questions/Answers already use for e.g. Custom Fields.

Parameters of davo_ticket_response
ParameterTypeDescription
$responsearray<string, mixed>Response being built.
$postWP_PostTicket post.
add_filter
add_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

davo_ticket_saved_view_created

Fires after an agent saves an inbox view.

Parameters of davo_ticket_saved_view_created
ParameterTypeDescription
$user_idintAgent's user ID.
$viewarray<string, mixed>The saved view.
add_action
add_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

davo_ticket_saved_view_deleted

Fires after an agent deletes a saved view.

Parameters of davo_ticket_saved_view_deleted
ParameterTypeDescription
$user_idintAgent's user ID.
$viewarray<string, mixed>The deleted view.
add_action
add_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

davo_ticket_saved_view_updated

Fires after an agent changes a saved view.

Parameters of davo_ticket_saved_view_updated
ParameterTypeDescription
$user_idintAgent's user ID.
$viewarray<string, mixed>The updated view.
add_action
add_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

davo_ticket_seen_by_customer

Fires after a customer has opened their ticket and its new replies are marked seen.

Parameters of davo_ticket_seen_by_customer
ParameterTypeDescription
$ticket_idintTicket post ID.
$customer_idintThe customer's user ID.
add_action
add_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

davo_ticket_split

Fires after messages are split out of a ticket into a new one.

Parameters of davo_ticket_split
ParameterTypeDescription
$source_ticket_idintTicket the messages came from.
$new_ticket_idintThe newly created ticket.
$message_idsarray<int>Moved message row ids.
$actor_idintUser who performed the split.
add_action
add_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

davo_ticket_status_changed

Fires after a ticket's status changes.

Parameters of davo_ticket_status_changed
ParameterTypeDescription
$ticket_idintTicket post ID.
$from_statusstringPrevious status.
$to_statusstringNew status.
$actor_idintUser ID who made the change (0 = system).
add_action
add_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

davo_ticket_tags_changed

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
ParameterTypeDescription
$ticket_idintTicket post ID.
$beforearray<string>Tag names before the change.
$afterarray<string>Tag names after the change.
$actor_idintUser ID who made the change (0 = system).
add_action
add_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

davo_ticket_task_completed

Fires after a ticket task was marked done.

Parameters of davo_ticket_task_completed
ParameterTypeDescription
$ticket_idintTicket post ID.
$task_idintTask ID.
$completed_byintUser who completed it.
add_action
add_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

davo_ticket_task_created

Fires after a task is created on a ticket.

Parameters of davo_ticket_task_created
ParameterTypeDescription
$ticket_idintTicket post ID.
$taskarrayNew task row.
add_action
add_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

davo_ticket_time_entry_updated

Fires after a time entry is edited.

Parameters of davo_ticket_time_entry_updated
ParameterTypeDescription
$entry_idintTime entry row id.
$minutesintNew minutes.
add_action
add_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

davo_ticket_time_logged

Fires after a time entry is logged against a ticket.

Parameters of davo_ticket_time_logged
ParameterTypeDescription
$ticket_idintTicket post ID.
$agent_idintLogging agent's user ID.
$minutesintMinutes logged.
add_action
add_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

davo_ticket_timer_started

Fires after an agent starts a timer on a ticket.

Parameters of davo_ticket_timer_started
ParameterTypeDescription
$ticket_idintTicket post ID.
$agent_idintAgent's user ID.
add_action
add_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

davo_ticket_unbookmarked

Fires after an agent removes a ticket bookmark.

Parameters of davo_ticket_unbookmarked
ParameterTypeDescription
$ticket_idintTicket post ID.
$agent_idintAgent who removed it.
add_action
add_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

davo_ticket_unlocked

Fires after a ticket is unlocked.

Parameters of davo_ticket_unlocked
ParameterTypeDescription
$ticket_idintTicket post ID.
$actor_idintAgent/admin user ID who unlocked it.
add_action
add_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

davo_ticket_unmerged

Fires after a ticket merge is undone.

Parameters of davo_ticket_unmerged
ParameterTypeDescription
$source_ticket_idintTicket restored to independence.
$target_ticket_idintTicket it had been merged into.
$unmerged_byintAgent/admin user ID who performed the unmerge.
add_action
add_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

davo_ticket_workflow_created

Fires after a workflow is created.

Parameters of davo_ticket_workflow_created
ParameterTypeDescription
$workflow_idintWorkflow id.
$actor_idintUser who created it.
add_action
add_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

davo_ticket_workflow_deleted

Fires after a workflow is deleted.

Parameters of davo_ticket_workflow_deleted
ParameterTypeDescription
$workflow_idintWorkflow id.
$actor_idintUser who deleted it.
add_action
add_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

davo_ticket_workflow_updated

Fires after a workflow is edited, enabled or disabled.

Parameters of davo_ticket_workflow_updated
ParameterTypeDescription
$workflow_idintWorkflow id.
$actor_idintUser who changed it.
add_action
add_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

davo_ticket_workflow_webhook_failed

Fires when a workflow webhook is given up on.

Parameters of davo_ticket_workflow_webhook_failed
ParameterTypeDescription
$envelopearray<string, mixed>Payload.
$codeintLast HTTP status, 0 when the request itself failed.
add_action
add_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

davo_tickets_ai_log_retention_days

Filters how many days AI log rows (without text) are kept.

Parameters of davo_tickets_ai_log_retention_days
ParameterTypeDescription
$daysintRetention in days.
add_filter
add_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

davo_tickets_ai_text_retention_days

Filters how many days stored AI prompt and answer text is kept.

Parameters of davo_tickets_ai_text_retention_days
ParameterTypeDescription
$daysintRetention in days.
add_filter
add_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

davo_tickets_audit_retention_days

Filters how many days ticket activity is kept; 0 keeps it for ever.

Parameters of davo_tickets_audit_retention_days
ParameterTypeDescription
$daysintRetention in days.
add_filter
add_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

davo_tickets_can_block_customers

Filters whether a viewer may block customers from opening tickets.

Parameters of davo_tickets_can_block_customers
ParameterTypeDescription
$allowedboolDefault: agents who can see customers.
$viewerarray<string, mixed>Viewer flags from Tickets_Repository::build_viewer().
add_filter
add_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

davo_tickets_can_create_customers

Filters whether a viewer may create customer accounts from the support desk.

Parameters of davo_tickets_can_create_customers
ParameterTypeDescription
$allowedboolDefault: managers only.
$viewerarray<string, mixed>Viewer flags from Tickets_Repository::build_viewer().
add_filter
add_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

davo_tickets_customer_profile_sections

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
ParameterTypeDescription
$sectionsarray<int, array<string, mixed>>Sections added so far (empty by default).
$user_idintWordPress user ID, or 0 for a guest.
$emailstringThe customer's email address.
add_filter
add_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

davo_tickets_guest_ip_rate_limit_multiplier

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
ParameterTypeDescription
$multiplierintDefault 4.
add_filter
add_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

davo_tickets_import_awesome_support_statuses

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
ParameterTypeDescription
$statusesstring[]Post status slugs.

Returns string[]

add_filter
add_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

davo_tickets_import_batch_size

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
ParameterTypeDescription
$sizeintBatch size.
$providerstringThe importer's provider ID.

Returns int

add_filter
add_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

davo_tickets_import_completed

Fires when an import job completes.

Parameters of davo_tickets_import_completed
ParameterTypeDescription
$job_idintJob id.
add_action
add_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

davo_tickets_import_log_retention_days

Filters how many days ticket import logs are kept. Defaults to 90.

Parameters of davo_tickets_import_log_retention_days
ParameterTypeDescription
$daysintRetention in days.

Returns int

add_filter
add_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

davo_tickets_import_send_notifications

Filter whether import progress emails are sent.

Parameters of davo_tickets_import_send_notifications
ParameterTypeDescription
$sendboolWhether to send.
$job_idintJob id.
$eventstringcompleted, failed or auto_paused.
add_filter
add_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

davo_tickets_import_time_budget

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
ParameterTypeDescription
$secondsintTime budget in seconds.

Returns int

add_filter
add_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

davo_tickets_importers

Filter the importers. Add an object implementing Tickets_Importer_Interface.

Parameters of davo_tickets_importers
ParameterTypeDescription
$listarray<int, Tickets_Importer_Interface>Importers.
add_filter
add_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

davo_tickets_inbound_attachment_uploader

Filters the user an anonymous sender's inbound attachments are stored under.

Parameters of davo_tickets_inbound_attachment_uploader
ParameterTypeDescription
$uploaderintUser ID chosen.
$message_idintMessage the files belong to.
add_filter
add_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

davo_tickets_inbound_clean_body

Filters the plain-text body before it is stored, so quoted replies and signatures can be stripped.

Parameters of davo_tickets_inbound_clean_body
ParameterTypeDescription
$textstringPlain-text body.
$emailarray<string, mixed>Normalized email.
add_filter
add_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

davo_tickets_inbound_email_failed

Fires when an inbound email could not be turned into a ticket or reply.

Parameters of davo_tickets_inbound_email_failed
ParameterTypeDescription
$codestringMachine-readable reason.
$reasonstringHuman-readable reason.
$emailarray<string, mixed>The normalized email (no attachment bodies).
add_action
add_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

davo_tickets_inbound_is_auto_generated

Filters whether an inbound email is treated as automatically generated.

Parameters of davo_tickets_inbound_is_auto_generated
ParameterTypeDescription
$flagboolDetection result.
$emailarray<string, mixed>Normalized email.
add_filter
add_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

davo_tickets_inbound_log_retention_days

Filters how many days inbound email log rows are kept.

Parameters of davo_tickets_inbound_log_retention_days
ParameterTypeDescription
$daysintRetention in days.
add_filter
add_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

davo_tickets_inbound_max_body_length

Filters the maximum stored body length, in characters.

Parameters of davo_tickets_inbound_max_body_length
ParameterTypeDescription
$maxintMaximum length.
add_filter
add_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

davo_tickets_inbound_sender_verified

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
ParameterTypeDescription
$verifiedboolProvider-derived result.
$emailarray<string, mixed>Normalized email.
$providerstringpostmark, sendgrid or mailgun.
add_filter
add_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

davo_tickets_integration_log_retention_days

Filters how many days messaging channel log rows are kept.

Parameters of davo_tickets_integration_log_retention_days
ParameterTypeDescription
$daysintRetention in days.
add_filter
add_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

davo_tickets_integrations_status

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
ParameterTypeDescription
$statusesarray<int, array<string, mixed>>Rows built above.
add_filter
add_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

davo_tickets_is_spam

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
ParameterTypeDescription
$is_spamboolDefault false.
$subjectstringSanitized ticket subject.
$contentstringSanitized ticket content.
$customer_emailstringSubmitter's email address.
add_filter
add_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

davo_tickets_list_query_args

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
ParameterTypeDescription
$query_argsarray<string, mixed>Query args built so far.
$argsarray<string, mixed>Original filter args from the request.
add_filter
add_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

davo_tickets_manage_message_fulltext_index

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
ParameterTypeDescription
$manageboolWhether to build and use the index.
add_filter
add_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

davo_tickets_manage_postmeta_index

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
ParameterTypeDescription
$manageboolWhether to create the index.
add_filter
add_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

davo_tickets_mcp_require_application_password

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
ParameterTypeDescription
$requireboolWhether to require an application password.
add_filter
add_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

davo_tickets_normalize_inbound_email

Filters the raw webhook payload into the normalized shape Tickets_Inbound_Email_Processor::process() expects.

Parameters of davo_tickets_normalize_inbound_email
ParameterTypeDescription
$normalizedarray<string, mixed>Defaults to the raw JSON params unchanged.
$requestWP_REST_RequestThe original request.
add_filter
add_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

davo_tickets_portal_login_url

Filters the sign-in address the ticket portal links to.

Parameters of davo_tickets_portal_login_url
ParameterTypeDescription
$urlstringDefault WordPress login URL.
$redirectstringAddress to return to after signing in.
add_filter
add_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

davo_tickets_portal_register_url

Filters the registration address the ticket portal links to; return an empty string for none.

Parameters of davo_tickets_portal_register_url
ParameterTypeDescription
$urlstringDefault WordPress registration URL, empty when registration is closed.
add_filter
add_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

davo_tickets_report_agent

Filters one agent's report before it is cached and returned.

Parameters of davo_tickets_report_agent
ParameterTypeDescription
$reportarray<string, mixed>Report built above.
$agent_idintAgent user ID.
$rangearray<string, mixed>from/to days the report covers and their days count.
add_filter
add_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

davo_tickets_report_overview

Filters the overview report before it is cached and returned.

Parameters of davo_tickets_report_overview
ParameterTypeDescription
$reportarray<string, mixed>Report built above.
$rangearray<string, mixed>from/to days the report covers, in the site's time zone, and their days count.
add_filter
add_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

davo_tickets_report_team

Filters the team report before it is cached and returned.

Parameters of davo_tickets_report_team
ParameterTypeDescription
$reportarray<string, mixed>Report built above.
$rangearray<string, mixed>from/to days the report covers and their days count.
add_filter
add_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

davo_tickets_require_reply_proof

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
ParameterTypeDescription
$requireboolWhether proof is required. Default true.
$ticket_idintThe ticket the reply is for.
$from_emailstringThe sender's address.

Returns bool

add_filter
add_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

davo_tickets_resolve_attachment_paths

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
ParameterTypeDescription
$pathsarray<string>Empty by default.
$attachment_rowsarray<int, array<string,mixed>>Rows from get_for_target_unguarded().
add_filter
add_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

davo_tickets_retention_run

Fires after a retention run anonymized tickets.

Parameters of davo_tickets_retention_run
ParameterTypeDescription
$idsint[]Ticket post IDs anonymized in this run.
$daysintThe configured retention period.
add_action
add_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

davo_tickets_setup_steps

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
ParameterTypeDescription
$stepsarray<int, array{key: string, done: bool, optional: bool}>Steps built above.
add_filter
add_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

davo_tickets_store_inbound_attachments

Stores an inbound email's attachments against the message just created.

Parameters of davo_tickets_store_inbound_attachments
ParameterTypeDescription
$storedarray<mixed>Empty array; a handler returns what it stored.
$attachmentsarray<mixed>Attachments from the normalized email.
$message_idintStored message row id.
$customer_idintResolved account ID, or 0.
add_filter
add_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

davo_tickets_time_entry_max_minutes

Filters the longest single time entry, in minutes.

Parameters of davo_tickets_time_entry_max_minutes
ParameterTypeDescription
$maxintMaximum minutes.
add_filter
add_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

davo_tickets_trust_unverified_reply_cc

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
ParameterTypeDescription
$trustboolWhether to trust the addresses.
$ticket_idintTicket post ID.
$emailarray<string, mixed>Normalized email.
add_filter
add_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

davo_tickets_user_released

Fires after a deleted user's tickets, tasks and canned responses were released.

Parameters of davo_tickets_user_released
ParameterTypeDescription
$user_idintDeleted user ID.
$reassign_tointAgent who took over their tickets, 0 if unassigned.
add_action
add_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

Note. Generated from the plugin source. Descriptions and parameters are the ones written in the code. The starter code uses the parameter names from those comments, or generic names where there are none, so check them against your use.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first