Replies: 3
I’m using the “Action Scheduler” plugin without WooCommerce, it’s FAQ page says to post in this forum with questions.
I have it working fine to schedule actions, and am able to interact with it via the API in a custom plugin, but I can’t figure out how to get the next scheduled date for an action.
I can get the object array, but how can I get just the date? Nothing I’ve tried works.
For example, I can get the object with:
$args = array( 'hook' => 'periodic_event', 'orderby' => 'date' );
$periodic = as_get_scheduled_actions( $args, 'OBJECT' );
I’ve tried echo $periodic->scheduled_date->date.'<br>';
and some other things. Rather than return the whole object array, how can I get just the next scheduled date?
Thanks for any help.