action
Fires after Davo finishes its uninstall cleanup pipeline.
Parameters of davo_after_uninstall Parameter Type Description $report array<string, mixed> Structured uninstall report.
add_action Copyadd_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
Fires right before Davo begins removing tables, options, and files during uninstall.
add_action Copyadd_action ( 'davo_before_uninstall' , 'my_action_callback' , 10 , 1 );
function my_action_callback ( $arg1 ) {
// Your code here.
}src/integrations/uninstall-integration.php:276
filter
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 Parameter Type Description $tickets array<string, mixed> Initial Tickets page state.
add_filter Copyadd_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
The source has no description for this hook. It is called from Uninstall_Integration::delete_davo_content().
Passed to callbacks: 25
add_filter Copyadd_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
Filters the list of cron hooks unscheduled when Davo is uninstalled.
Parameters of davo_uninstall_cron_hooks Parameter Type Description $hooks string[] Cron hook names.
add_filter Copyadd_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
Filters the list of database classes or objects uninstalled by Davo.
Parameters of davo_uninstall_databases Parameter Type Description $entries array<int, class-string|object> Database class names or instances.
add_filter Copyadd_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
Filters whether Davo post/taxonomy content is also deleted during uninstall. Defaults to false.
Parameters of davo_uninstall_delete_content Parameter Type Description $delete bool Whether to delete Davo content posts and terms.
add_filter Copyadd_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
Filters the custom post types deleted when davo_uninstall_delete_content is true.
Parameters of davo_uninstall_post_types Parameter Type Description $post_types string[] Post type slugs.
add_filter Copyadd_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
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 Parameter Type Description $remove bool Whether to remove the data.
add_filter Copyadd_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
Filters the custom taxonomies purged when davo_uninstall_delete_content is true.
Parameters of davo_uninstall_taxonomies Parameter Type Description $taxonomies string[] Taxonomy slugs.
add_filter Copyadd_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
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 Parameter Type Description $subdirs string[] Relative subdirectory paths.
add_filter Copyadd_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