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:

functions.php
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.

  1. WordLift icon 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
  2. WunderAutomation icon 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
  3. Apimo Connector icon 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
  4. MoceanAPI Order SMS Notification for WooCommerce icon 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
  5. Lity icon 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
  6. Connect Ultimate Member to Discord icon 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
  7. Connect LearnDash to Discord icon 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
  8. Connect Tutor LMS to Discord icon 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
  9. Back in stock notifications for WooCommerce icon 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
  10. WP Mailing Status icon 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
  11. Connect GamiPress to Discord icon 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
  12. Come Back! icon 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
  13. Connect LearnPress to Discord icon 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
  14. Stalkfish icon 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
  15. Mailtree Log Mail icon 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
  16. Subscriptions & Recurring Payments for WooCommerce icon 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
  17. USMS-GH WooCommerce SMS Notification icon 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
  18. Connect Restrict Content Pro to Discord AddOn icon 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
  19. MoceanAPI SendSMS icon 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
  20. Connect LifterLMS to Discord icon 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
  21. Paywong Payments icon 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
  22. Connect BadgeOS to Discord icon 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
  23. Connect ProfilePress and Discord icon 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
  24. Connect Eduma Theme to Discord icon 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.