WordPress filter hook

action_scheduler_enable_failed_action_cleanup

Defined by Action Scheduler and fired by 32 plugins in total, running on 7.2M+ sites between them.

“Filter whether failed actions are purged. Return false to disable failed action cleanup.”

How to use action_scheduler_enable_failed_action_cleanup

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'action_scheduler_enable_failed_action_cleanup', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

32 plugins that fire action_scheduler_enable_failed_action_cleanup

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  2. FooGallery Photo Gallery : Image, Video & Masonry Galleries icon FooGallery Photo Gallery : Image, Video & Masonry Galleries100,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  3. Site Reviews icon Site Reviews60,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) vendors/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  4. Easy Digital Downloads icon Easy Digital Downloads40,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  5. Action Scheduler icon Action Scheduler20,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) classes/ActionScheduler_QueueCleaner.php:162
  6. Content Egg icon Content Egg10,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  7. WPScan icon WPScan8,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  8. Podcast Importer SecondLine icon Podcast Importer SecondLine4,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  9. Pronamic Pay icon Pronamic Pay2,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  10. WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into Event Calendar icon WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into Event Calendar1,000+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) includes/wpea-action-scheduler/action-scheduler/classes/ActionScheduler_QueueCleaner.php:163
  11. WANotifier for Forms and Actions icon WANotifier for Forms and Actions900+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  12. Pronamic Pay with Mollie for Gravity Forms icon Pronamic Pay with Mollie for Gravity Forms300+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  13. Pronamic Pay with Mollie for Contact Form 7 icon Pronamic Pay with Mollie for Contact Form 7100+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  14. WebinarIgnition icon WebinarIgnition70+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) inc/lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  15. Smacks! Simple Importer icon Smacks! Simple Importer50+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libs/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  16. Pronamic Pay with Rabo Smart Pay for WooCommerce icon Pronamic Pay with Rabo Smart Pay for WooCommerce20+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  17. Pronamic Pay with Mollie for Ninja Forms icon Pronamic Pay with Mollie for Ninja Forms10+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  18. Bookance Appointment Booking icon Bookance Appointment Booking10+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  19. ilGhera Reviso Exporter for WooCommerce icon ilGhera Reviso Exporter for WooCommerce10+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  20. Pronamic Pay with Mollie for WooCommerce icon Pronamic Pay with Mollie for WooCommerce10+ installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  21. DecaCrew icon DecaCrewFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  22. Bulk Email Checker icon Bulk Email CheckerFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  23. Performance Optimisation icon Performance OptimisationFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) includes/Database/class-database-cleanup.php:2284
  24. Strata Site Audit icon Strata Site AuditFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  25. Blinkimg Image Optimizer: Convert to WebP & AVIF, Compress Images, Same Quality icon Blinkimg Image Optimizer: Convert to WebP & AVIF, Compress Images, Same QualityFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) vendor-prefixed/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  26. Fast Imagery icon Fast ImageryFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  27. Agentyllo icon AgentylloFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  28. Queue Ajax Calls Performantly icon Queue Ajax Calls PerformantlyFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  29. Zybroz AI Agents icon Zybroz AI AgentsFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  30. ilGhera WooCommerce Importer for Reviso icon ilGhera WooCommerce Importer for RevisoFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  31. Pronamic Pay doneren met Mollie icon Pronamic Pay doneren met MollieFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162
  32. Asyncra Queue Triage for Action Scheduler icon Asyncra Queue Triage for Action SchedulerFewer than 10 installs apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ) includes/class-reader.php:217

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.