| 开发者 |
Automattic
wpmuguru claudiosanches peterfabian1000 vedjain jamosova obliviousharmony konamiman sadowski royho barryhughes-1 crstauf jorgeatorres coreymckrill prettyboymp ovidiul |
|---|---|
| 更新时间 | 2026年9月17日 05:53 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | 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:
uninstall.php, and add as_supports( 'uninstall_bootstrap' ) so host plugins can detect it.wp action-scheduler clean command so that the --before option defaults to 31 days ago.wp_admin_notice() to render admin notices, instead of custom HTML.action_scheduler_allowed_nested_schedule_classes, action_scheduler_enforce_schedule_allowed_classes) and an action (action_scheduler_unexpected_schedule_class) to tune and observe schedule deserialization.action_scheduler_retention_period_for_failed filter.action_scheduler_enable_failed_action_cleanup filter to disable automatic cleanup of failed actions.WP_CLI class to prevent fatal error.action cancel --all CLI command.get_claim_count() query for large stores.require_once path for Cancel_CommandFix absolute import.esc_html() hook name in admin notice markup.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.