WordPress filter hook

pre_as_enqueue_async_action

Fired by 97 WordPress plugins, running on 11.1M+ sites between them.

“Provides an opportunity to short-circuit the default process for enqueuing async actions.”

How to use pre_as_enqueue_async_action

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

functions.php
add_filter( 'pre_as_enqueue_async_action', function( $value, $hook, $args, $group, $priority, $unique ) {
	// Change $value here.
	return $value;
}, 10, 6 );

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

97 plugins that fire pre_as_enqueue_async_action

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( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/action-scheduler/functions.php:40
  2. Imagify Image Optimization: Optimize Images icon Imagify Image Optimization: Optimize Images900,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) inc/Dependencies/ActionScheduler/functions.php:40
  3. Fluent Forms icon Fluent Forms800,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) app/Services/Libraries/action-scheduler/functions.php:40
  4. Forminator Forms icon Forminator Forms600,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) library/lib/action-scheduler/functions.php:40
  5. SureForms icon SureForms500,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) inc/lib/action-scheduler/functions.php:39
  6. Ultimate Member icon Ultimate Member200,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/lib/action-scheduler/functions.php:40
  7. CartFlows icon CartFlows200,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) libraries/action-scheduler/functions.php:39
  8. UserFeedback icon UserFeedback200,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/lib/action-scheduler/functions.php:40
  9. Modula Image Gallery icon Modula Image Gallery100,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/libraries/action-scheduler/functions.php:40
  10. FooGallery Photo Gallery : Image, Video & Masonry Galleries icon FooGallery Photo Gallery : Image, Video & Masonry Galleries100,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  11. WP Umbrella: Security Backup Restore & Monitoring icon WP Umbrella: Security Backup Restore & Monitoring90,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) thirds/action-scheduler/functions.php:40
  12. Import and export users and customers icon Import and export users and customers70,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  13. Site Reviews icon Site Reviews60,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) vendors/woocommerce/action-scheduler/functions.php:40
  14. Email Subscribers & Newsletters by Icegram Express icon Email Subscribers & Newsletters by Icegram Express50,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) lite/includes/libraries/action-scheduler/functions.php:39
  15. Easy Digital Downloads icon Easy Digital Downloads40,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  16. Search & Replace Everything icon Search & Replace Everything20,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  17. Action Scheduler icon Action Scheduler20,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) functions.php:40
  18. FunnelKit Automations icon FunnelKit Automations20,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:41
  19. Paid Membership Subscriptions icon Paid Membership Subscriptions10,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/libraries/action-scheduler/functions.php:40
  20. URL Shortify icon URL Shortify10,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  21. SureContact icon SureContact10,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  22. Content Egg icon Content Egg10,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  23. Advanced Form Integration icon Advanced Form Integration9,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) library/action-scheduler/functions.php:40
  24. Stripe Payment Forms by WP Simple Pay icon Stripe Payment Forms by WP Simple Pay8,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) lib/woocommerce/action-scheduler/functions.php:39
  25. WPScan icon WPScan8,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  26. Smart Image Resize for WooCommerce icon Smart Image Resize for WooCommerce7,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) libraries/action-scheduler/functions.php:39
  27. Podcast Importer SecondLine icon Podcast Importer SecondLine4,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  28. ReCrawler icon ReCrawler4,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) vendor-prefixed/woocommerce/action-scheduler/functions.php:40
  29. Powered Cache icon Powered Cache3,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/package/woocommerce/action-scheduler/functions.php:40
  30. Quill Forms icon Quill Forms3,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) dependencies/libraries/action-scheduler/functions.php:40
  31. Import Eventbrite Events icon Import Eventbrite Events3,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/iee-action-scheduler/action-scheduler/functions.php:44
  32. Pronamic Pay icon Pronamic Pay2,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  33. Knit Pay icon Knit Pay2,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  34. SureMembers icon SureMembers2,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  35. Mailrelay icon Mailrelay1,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  36. Auto YouTube Importer icon Auto YouTube Importer1,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  37. 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( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/wpea-action-scheduler/action-scheduler/functions.php:42
  38. SureDash icon SureDash1,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) inc/lib/action-scheduler/functions.php:40
  39. Smart Online Order for Clover icon Smart Online Order for Clover1,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  40. Notification Master icon Notification Master1,000+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/libraries/action-scheduler/functions.php:40
  41. Image SEO icon Image SEO900+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) thirds/action-scheduler/functions.php:39
  42. WANotifier for Forms and Actions icon WANotifier for Forms and Actions900+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  43. Infinite Uploads icon Infinite Uploads800+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  44. Revive.so icon Revive.so600+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) libraries/action-scheduler/functions.php:39
  45. ExpressTechSoftwares Discord Add-on for Paid Memberships Pro icon ExpressTechSoftwares Discord Add-on for Paid Memberships Pro600+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  46. IP Locator icon IP Locator500+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/libraries/action-scheduler/functions.php:40
  47. GatewayAPI icon GatewayAPI300+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  48. Logify WP icon Logify WP300+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) action-scheduler/functions.php:45
  49. Pronamic Pay with Mollie for Gravity Forms icon Pronamic Pay with Mollie for Gravity Forms300+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  50. WordLift icon WordLift300+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group ) libraries/action-scheduler/functions.php:37
  51. Import Meetup Events icon Import Meetup Events300+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/ime-action-scheduler/action-scheduler/functions.php:40
  52. Push Notification for Post and BuddyPress icon Push Notification for Post and BuddyPress200+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:43
  53. ExpressTechSoftwares Addon for MemberPress and Discord icon ExpressTechSoftwares Addon for MemberPress and Discord100+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) includes/libraries/action-scheduler/functions.php:39
  54. Limb AI Chatbot icon Limb AI Chatbot100+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/lib/action-scheduler/functions.php:40
  55. Pronamic Pay with Mollie for Contact Form 7 icon Pronamic Pay with Mollie for Contact Form 7100+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  56. DoubleScale CRM icon DoubleScale CRM80+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) dependencies/libraries/action-scheduler/functions.php:40
  57. WebinarIgnition icon WebinarIgnition80+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) inc/lib/action-scheduler/functions.php:40
  58. Quill Booking icon Quill Booking60+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) dependencies/libraries/action-scheduler/functions.php:40
  59. Content Forge icon Content Forge60+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) Lib/action-scheduler/functions.php:40
  60. Eventilla Events icon Eventilla Events50+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  61. Smacks! Simple Importer icon Smacks! Simple Importer50+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  62. Mediapapa icon Mediapapa40+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/Dependencies/ActionScheduler/functions.php:40
  63. Magic Link icon Magic Link30+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  64. Fast Events icon Fast Events30+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  65. Compresso icon Compresso30+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  66. Logify icon Logify10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  67. Visidea icon Visidea10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group ) libraries/action-scheduler/functions.php:37
  68. Zeno icon Zeno10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) src/Services/Scheduler/scoped-vendor/action-scheduler/functions.php:40
  69. Pronamic Pay with Mollie for Ninja Forms icon Pronamic Pay with Mollie for Ninja Forms10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  70. Bookance Appointment Booking icon Bookance Appointment Booking10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  71. Waypoint SEO Content Generator icon Waypoint SEO Content Generator10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  72. ilGhera Reviso Exporter for WooCommerce icon ilGhera Reviso Exporter for WooCommerce10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  73. Filter AI icon Filter AI10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/action-scheduler/functions.php:40
  74. ChatBudgie icon ChatBudgie10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  75. Pronamic Pay with Rabo Smart Pay for WooCommerce icon Pronamic Pay with Rabo Smart Pay for WooCommerce10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  76. Pronamic Pay with Mollie for WooCommerce icon Pronamic Pay with Mollie for WooCommerce10+ installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  77. DecaCrew icon DecaCrewFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  78. WPayme icon WPaymeFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  79. Aben icon AbenFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  80. Bulk Email Checker icon Bulk Email CheckerFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  81. PostCaster icon PostCasterFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) includes/vendor-prefixed/woocommerce/action-scheduler/functions.php:43
  82. Waymender icon WaymenderFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  83. Anchormender icon AnchormenderFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  84. BizzyBees Content Aggregator icon BizzyBees Content AggregatorFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  85. Strata Site Audit icon Strata Site AuditFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  86. 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( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) vendor-prefixed/action-scheduler/functions.php:40
  87. Fast Imagery icon Fast ImageryFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  88. Zapify icon ZapifyFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libs/action-scheduler/functions.php:40
  89. Agentyllo icon AgentylloFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  90. Queue Ajax Calls Performantly icon Queue Ajax Calls PerformantlyFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  91. Zybroz AI Agents icon Zybroz AI AgentsFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  92. ilGhera WooCommerce Importer for Reviso icon ilGhera WooCommerce Importer for RevisoFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  93. Stalemender icon StalemenderFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) lib/action-scheduler/functions.php:40
  94. PG Sync for Klaviyo and Woo Memberships and Subscriptions icon PG Sync for Klaviyo and Woo Memberships and SubscriptionsFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) libraries/action-scheduler/functions.php:40
  95. Pronamic Pay doneren met Mollie icon Pronamic Pay doneren met MollieFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ) packages/woocommerce/action-scheduler/functions.php:40
  96. AI Chat With Pages icon AI Chat With PagesFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) plugins/action-scheduler/functions.php:39
  97. WPayo icon WPayoFewer than 10 installs apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority ) packages/woocommerce/action-scheduler/functions.php:39

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.