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:
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.
-
WooCommerce7+ million installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
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 -
Site Reviews60,000+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )vendors/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Easy Digital Downloads40,000+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Action Scheduler20,000+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )classes/ActionScheduler_QueueCleaner.php:162 -
Content Egg10,000+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
WPScan8,000+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Podcast Importer SecondLine4,000+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Pronamic Pay2,000+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )packages/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
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 -
WANotifier for Forms and Actions900+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
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 -
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 -
WebinarIgnition70+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )inc/lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Smacks! Simple Importer50+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libs/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
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 -
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 -
Bookance Appointment Booking10+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
ilGhera Reviso Exporter for WooCommerce10+ installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
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 -
DecaCrewFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Bulk Email CheckerFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Performance OptimisationFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )includes/Database/class-database-cleanup.php:2284 -
Strata Site AuditFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
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 -
Fast ImageryFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
AgentylloFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Queue Ajax Calls PerformantlyFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
Zybroz AI AgentsFewer than 10 installs
apply_filters( 'action_scheduler_enable_failed_action_cleanup', true )libraries/action-scheduler/classes/ActionScheduler_QueueCleaner.php:162 -
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 -
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 -
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.