WordPress action hook
action_scheduler_failed_old_action_deletion
Fired by 24 WordPress plugins, running on 940+ sites between them.
“Notify 3rd party code of exceptions when deleting a completed action older than the retention period”
How to use action_scheduler_failed_old_action_deletion
It's an action: your callback runs at that point and receives 4 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'action_scheduler_failed_old_action_deletion', function( $action_id, $e, $lifespan, $count ) {
// Your code runs here.
}, 10, 4 );Argument names come from WordLift's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
24 plugins that fire action_scheduler_failed_old_action_deletion
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WordLift300+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
WunderAutomation200+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )src/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Apimo Connector100+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )action-scheduler/classes/ActionScheduler_QueueCleaner.php:135 -
MoceanAPI Order SMS Notification for WooCommerce40+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Lity40+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect Ultimate Member to Discord30+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect LearnDash to Discord30+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect Tutor LMS to Discord30+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Back in stock notifications for WooCommerce30+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
WP Mailing Status20+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:67 -
Connect GamiPress to Discord20+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Come Back!20+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )wp-content/plugins/action-scheduler/classes/ActionScheduler_QueueCleaner.php:67 -
Connect LearnPress to Discord10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:67 -
Stalkfish10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Mailtree Log Mail10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Subscriptions & Recurring Payments for WooCommerce10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )inc/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:67 -
USMS-GH WooCommerce SMS Notification10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect Restrict Content Pro to Discord AddOn10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
MoceanAPI SendSMS10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect LifterLMS to Discord10+ installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:67 -
Paywong PaymentsFewer than 10 installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect BadgeOS to DiscordFewer than 10 installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect ProfilePress and DiscordFewer than 10 installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:68 -
Connect Eduma Theme to DiscordFewer than 10 installs
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) )includes/libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:67
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.