do_action( 'action_scheduler_failed_old_action_deletion', int $action_id, Exception $e, int $lifespan, int $count_of_actions_to_delete )

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


Description Description

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


Parameters Parameters

$action_id

The scheduled actions ID in the data store

$e

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


Top ↑

Source Source

File: packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.