Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New 2 handly functions #1229

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

Arifursdev
Copy link

This pull request introduces two new functions to the functions.php file to enhance the functionality of the action scheduler. These functions allow for running all queued actions or the next queued action for a given hook, arguments, and group.

New functionality for action scheduler:

  • Added as_run_queued_actions function to run all queued actions for a given hook, arguments, and group. This function initializes the action scheduler, queries the actions, and processes each action while handling exceptions.
  • Added as_run_next_queued_action function to run the next queued action for a given hook, arguments, and group. Similar to as_run_queued_actions, this function initializes the action scheduler, queries the next action, and processes it while handling exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant