0

I have successfully added an event via wp_schedule_event and I'd like to trigger it manually without disrupting the existing schedule.

Is there a way to tell WP to execute an event immediately without the cha-cha where I have to swap values in-and-out to get the event to fire and save/restore the existing (pre-manual call) timing on the event?

4

Why not just to do_action($hook) of your cronned event?

  • Where in the page execution would this be done? To run like a normal scheduled event, it would need the environment loaded up to the appropriate level. – Jason Nov 24 '15 at 14:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.