开发者 |
Automattic
wpmuguru claudiosanches peterfabian1000 vedjain jamosova obliviousharmony konamiman sadowski royho barryhughes-1 |
---|---|
更新时间 | 2024年4月5日 22:42 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.5 |
版权: | 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 to Action Scheduler works, and how to use it in your plugin, check out the docs on ActionScheduler.org.
There you will find:
_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
.