I’m working with the jQuery Countdown timer for the first time and I wanted to integrate it into my WordPress site to display the time until the next scheduled cron event. When the countdown has reached 0, it grabs the next timestamp and begins counting down to that, and so on…

What I have so far

jQuery

var nextScheduledEvent = "<?php echo date('M j Y H:i:s', wp_next_scheduled('next_cron_event') ); ?>";
$('#countdown-table').countdown({
    until: nextScheduledEvent
});

I’m not quite sure how to go about this, or if I am even on the right track.

Does anyone have ideas suggestions that might help out?

Thanks.

Read more here: wp_next_scheduled() with jQuery Countdown


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, ,

Wordpress related questions and answers: