\ActionScheduler_RecurringActionScheduler

Class ActionScheduler_RecurringActionScheduler

This class ensures that the action_scheduler_ensure_recurring_actions hook is triggered on a daily interval. This simplifies the process for other plugins to register their recurring actions without requiring each plugin to query or schedule actions independently on every request.

Summary

Methods
Properties
Constants
init()
schedule_recurring_scheduler_hook()
run_recurring_scheduler_hook()
No public properties found
RUN_SCHEDULED_RECURRING_ACTIONS_HOOK
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

RUN_SCHEDULED_RECURRING_ACTIONS_HOOK

RUN_SCHEDULED_RECURRING_ACTIONS_HOOK = 'action_scheduler_run_recurring_actions_schedule_hook' : string

Methods

init()

init() : void

Initialize the instance. Should only be run on a single instance per request.

schedule_recurring_scheduler_hook()

schedule_recurring_scheduler_hook() : void

Schedule the recurring `action_scheduler_ensure_recurring_actions` action if not already scheduled.

run_recurring_scheduler_hook()

run_recurring_scheduler_hook() : void

Trigger the hook to allow other plugins to schedule their recurring actions.