action_scheduler_default_cleaner_statuses filter-hookWC 1.0

Filter the statuses when cleaning the queue.

Usage

add_filter( 'action_scheduler_default_cleaner_statuses', 'wp_kama_action_scheduler_default_cleaner_statuses_filter' );

/**
 * Function for `action_scheduler_default_cleaner_statuses` filter-hook.
 * 
 * @param string[] $default_statuses_to_purge Action statuses to clean.
 *
 * @return string[]
 */
function wp_kama_action_scheduler_default_cleaner_statuses_filter( $default_statuses_to_purge ){

	// filter...
	return $default_statuses_to_purge;
}
$default_statuses_to_purge(string[])
Action statuses to clean.

Where the hook is called

ActionScheduler_QueueCleaner::delete_old_actions()
action_scheduler_default_cleaner_statuses
woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php 75
$statuses_to_purge = (array) apply_filters( 'action_scheduler_default_cleaner_statuses', $this->default_statuses_to_purge );

Where the hook is used in WooCommerce

Usage not found.