Meet Action Scheduler – a scalable processor of large queues of PHP jobs. Learn how to run bulk actions without triggering the “Connection Timed Out” error.
Hosted by Rodolfo Melogli
Masterclass overview
“Every month, Action Scheduler processes millions of payments for Subscriptions, webhooks for WooCommerce, as well as emails and other events for a range of other WordPress plugins. It’s been seen on live sites processing queues in excess of 50,000 jobs and doing resource intensive operations, like processing payments and creating orders, at a sustained rate of over 10,000 / hour without negatively impacting normal site operations” (source: https://github.com/woocommerce/action-scheduler).
If you want to bulk edit 100,000 WooCommerce orders, or bulk delete 1,000,000 WooCommerce products, or bulk re-send 10,000,000 WooCommerce emails with a single PHP hook – you need background processing.
And Action Scheduler, which is developed, maintained, and included inside the WooCommerce plugin by Automattic, can help.
Imagine running an add_action on a huge product query – by using Action Scheduler PHP functions you can queue the jobs instead of running them all at once.
In this class, we will study the default Action Scheduler API functions (as_enqueue_async_action, as_schedule_recurring_action, etc.) and then see how we can use them with specific WooCommerce hooks, so that we can safely run bulk edits or scheduled actions. We will also briefly check the admin interface, which is visible in the WooCommerce settings!
Video Recording & Materials
Video
Materials
- Action Scheduler Docs https://github.com/woocommerce/action-scheduler
- Action Scheduler API https://actionscheduler.org/api/
- Snippet: Bulk Search Replace SKUs https://www.businessbloomer.com/woocommerce-bulk-search-replace-sku/
- Snippet: Get All Woo Customers https://www.businessbloomer.com/woocommerce-get-all-customers/
- Snippet: Send Emails https://www.businessbloomer.com/woocommerce-custom-cron-job/
What you’ll learn
Requirements
Upcoming masterclasses
Live Coding a WooCommerce Mini-Plugin
Join me for a live coding session, while I try to develop…
1-Hour WooCommerce Challenge: Let’s Recreate the Nike Product Page
Join me for a live coding challenge, where Iโll customize the WooCommerce…
Buying a WooCommerce Store: All You Need to Know
A guide to valuation, negotiation, and acquisition strategies – along with post-acquisition…
Available recordings
WooCommerce AMA with Rodolfo Melogli
Join me for an ‘Ask Me Anything About WooCommerce’ session โ covering customization, development, plugins,…
Maximize Your WooCommerce Potential: Understanding User Behavior with Clarity
Learn how to use the free Microsoft Clarity plugin to record and analyze user behavior…
Mastering WooCommerce Thank You Page Customization: A Plugin-Free Approach
Let’s learn how to personalize the WooCommerce Thank You page with simple code, so that…
Conversion-Focused Redesign Of The WooCommerce Single Product Page
Let’s improve the boring WooCommerce Single Product page and encourage MORE users to convert. Hosted…
Allow Multiple Payments In The Same WooCommerce Order
All deposit / split / partial payment plugins generate an additional order for paying the…
Live Coding a Simple WooCommerce Checkout Currency Switcher
I definitely need a EUR/USD switcher in my Woo shop, and I’d love to try…
How to Find and Fix Slow Database Queries in WooCommerce
Learn how to resolve slow database queries in WordPress / WooCommerce websites. Use the right…
Live Coding a “Deal of the Week” Functionality For WooCommerce
I’ve always wanted to set up an automatic promotion on a different Woo product each…
Web Accessibility Basics for WooCommerce
Accessibility in ecommerce is increasingly a legal requirement, but it also helps you expand your…
– BACKED BY –
Is your WooCommerce store prepared for traffic spikes? Improve speeds up to 200% with our
managed WooCommerce hosting. Enjoy scalable server resources, rock-solid security, and 24/7 support.