WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

action_scheduler_failed_old_action_deletion хук-событие . 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_7602', 10, 4 );
function action_function_name_7602( $action_id, $e, $lifespan, $count_of_actions_to_delete ){
	// action...
}
$action_id(число)
The scheduled actions ID in the data store
$e(Exception)
The exception thrown when attempting to delete the action from the data store
$lifespan(число)
The retention period, in seconds, for old actions
$count_of_actions_to_delete(число)
The number of old actions being deleted in this batch

Где вызывается хук

ActionScheduler_QueueCleaner::delete_old_actions()
action_scheduler_failed_old_action_deletion
woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php 67
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) );

Где используется хук (в ядре WC)

Не используется.