Skip to content

Actions and filters

Integrations: 11 hooks.

10 of the 11 have a description in the source.

2 actions9 filters

action

davo_after_uninstall

Fires after Davo finishes its uninstall cleanup pipeline.

Parameters of davo_after_uninstall
ParameterTypeDescription
$reportarray<string, mixed>Structured uninstall report.
add_action
add_action( 'davo_after_uninstall', 'my_action_callback', 10, 1 );

/**
 * @param array<string, mixed> $report
 */
function my_action_callback( $report ) {
	// Your code here.
}

src/integrations/uninstall-integration.php:355

action

davo_before_uninstall

Fires right before Davo begins removing tables, options, and files during uninstall.

add_action
add_action( 'davo_before_uninstall', 'my_action_callback', 10, 1 );

function my_action_callback( $arg1 ) {
	// Your code here.
}

src/integrations/uninstall-integration.php:276

filter

davo_tickets_admin_script_data

Filters the initial state hydrated into the admin Tickets page. The Tickets domain hooks this to supply the viewer, statuses, counts and lookups, so this integration takes no dependency on that domain's classes.

Parameters of davo_tickets_admin_script_data
ParameterTypeDescription
$ticketsarray<string, mixed>Initial Tickets page state.
add_filter
add_filter( 'davo_tickets_admin_script_data', 'my_filter_callback', 10, 1 );

/**
 * @param array<string, mixed> $tickets
 */
function my_filter_callback( $tickets ) {
	// Change $tickets as needed, then return it.
	return $tickets;
}

src/integrations/admin/tickets-page-integration.php:154

filter

davo_uninstall_content_time_budget

The source has no description for this hook. It is called from Uninstall_Integration::delete_davo_content().

Passed to callbacks: 25

add_filter
add_filter( 'davo_uninstall_content_time_budget', 'my_filter_callback', 10, 1 );

function my_filter_callback( $arg1 ) {
	// Change $arg1 as needed, then return it.
	return $arg1;
}

src/integrations/uninstall-integration.php:546

filter

davo_uninstall_cron_hooks

Filters the list of cron hooks unscheduled when Davo is uninstalled.

Parameters of davo_uninstall_cron_hooks
ParameterTypeDescription
$hooksstring[]Cron hook names.
add_filter
add_filter( 'davo_uninstall_cron_hooks', 'my_filter_callback', 10, 1 );

/**
 * @param string[] $hooks
 */
function my_filter_callback( $hooks ) {
	// Change $hooks as needed, then return it.
	return $hooks;
}

src/integrations/uninstall-integration.php:504

filter

davo_uninstall_databases

Filters the list of database classes or objects uninstalled by Davo.

Parameters of davo_uninstall_databases
ParameterTypeDescription
$entriesarray<int, class-string|object>Database class names or instances.
add_filter
add_filter( 'davo_uninstall_databases', 'my_filter_callback', 10, 1 );

/**
 * @param array<int, class-string|object> $entries
 */
function my_filter_callback( $entries ) {
	// Change $entries as needed, then return it.
	return $entries;
}

src/integrations/uninstall-integration.php:468

filter

davo_uninstall_delete_content

Filters whether Davo post/taxonomy content is also deleted during uninstall. Defaults to false.

Parameters of davo_uninstall_delete_content
ParameterTypeDescription
$deleteboolWhether to delete Davo content posts and terms.
add_filter
add_filter( 'davo_uninstall_delete_content', 'my_filter_callback', 10, 1 );

/**
 * @param bool $delete
 */
function my_filter_callback( $delete ) {
	// Change $delete as needed, then return it.
	return $delete;
}

src/integrations/uninstall-integration.php:299

filter

davo_uninstall_post_types

Filters the custom post types deleted when davo_uninstall_delete_content is true.

Parameters of davo_uninstall_post_types
ParameterTypeDescription
$post_typesstring[]Post type slugs.
add_filter
add_filter( 'davo_uninstall_post_types', 'my_filter_callback', 10, 1 );

/**
 * @param string[] $post_types
 */
function my_filter_callback( $post_types ) {
	// Change $post_types as needed, then return it.
	return $post_types;
}

src/integrations/uninstall-integration.php:554

filter

davo_uninstall_remove_data

Filters whether Davo removes its data when the plugin is uninstalled.

Defaults to the remove-data setting, which is off until the owner turns it on.

Parameters of davo_uninstall_remove_data
ParameterTypeDescription
$removeboolWhether to remove the data.
add_filter
add_filter( 'davo_uninstall_remove_data', 'my_filter_callback', 10, 1 );

/**
 * @param bool $remove
 */
function my_filter_callback( $remove ) {
	// Change $remove as needed, then return it.
	return $remove;
}

src/integrations/uninstall-integration.php:420

filter

davo_uninstall_taxonomies

Filters the custom taxonomies purged when davo_uninstall_delete_content is true.

Parameters of davo_uninstall_taxonomies
ParameterTypeDescription
$taxonomiesstring[]Taxonomy slugs.
add_filter
add_filter( 'davo_uninstall_taxonomies', 'my_filter_callback', 10, 1 );

/**
 * @param string[] $taxonomies
 */
function my_filter_callback( $taxonomies ) {
	// Change $taxonomies as needed, then return it.
	return $taxonomies;
}

src/integrations/uninstall-integration.php:696

filter

davo_uninstall_upload_subdirectories

Filters the upload subdirectories under wp-content/uploads/ removed on uninstall.

Every entry must remain strictly inside wp-content/uploads/davo/.

Parameters of davo_uninstall_upload_subdirectories
ParameterTypeDescription
$subdirsstring[]Relative subdirectory paths.
add_filter
add_filter( 'davo_uninstall_upload_subdirectories', 'my_filter_callback', 10, 1 );

/**
 * @param string[] $subdirs
 */
function my_filter_callback( $subdirs ) {
	// Change $subdirs as needed, then return it.
	return $subdirs;
}

src/integrations/uninstall-integration.php:960

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