WordPress at Your Fingertips
action is not described

action_scheduler_failed_old_action_deletion action-hook . WC 2.0.0

Notify 3rd party code of exceptions when deleting a completed action older than the retention period

This hook provides a way for 3rd party code to log or otherwise handle exceptions relating to their actions.


add_action( 'action_scheduler_failed_old_action_deletion', 'action_function_name_6589', 10, 4 );
function action_function_name_6589( $action_id, $e, $lifespan, $count_of_actions_to_delete ){
	// action...
The scheduled actions ID in the data store
The exception thrown when attempting to delete the action from the data store
The retention period, in seconds, for old actions
The number of old actions being deleted in this batch


Since 2.0.0 Introduced.

Where the hook is called

woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php 68
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) );

Where in WP core the hook is used WooCommerce

Usage not found.