| 开发者 |
Automattic
wpmuguru claudiosanches peterfabian1000 vedjain jamosova obliviousharmony konamiman sadowski royho barryhughes-1 |
|---|---|
| 更新时间 | 2025年7月15日 17:33 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv3 |
do_action() which adds the ability to delay and repeat a hook.
Battle-Tested Background Processing
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 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.
This is all on infrastructure and WordPress sites outside the control of the plugin author.
If your plugin needs background processing, especially of large sets of tasks, Action Scheduler can help.
Learn More
To learn more about how Action Scheduler works, and how to use it in your plugin, check out the docs on ActionScheduler.org.
There you will find:
get_flag_value() from WP_CLI\Utils before using.$unique available to all pre-creation/short-circuit hooks.no rather than deleting.as_pending_actions_due() function.action_scheduler_claim_actions_order_by enhanced to provide callbacks with additional information.pre_as_enqueue_async_action hook._n() translation function._doing_it_wrong in initialization check.$priority arg for various API functions.--exclude-groups WP CLI option.action_scheduler_init hook.in-progress.ActionScheduler_ActionFactory's calls to single_unique.undefined variable warning for $num_pastdue_actions.