ActionScheduler_Store::has_pending_actions_due
Check if there are any pending scheduled actions due to run.
Method of the class: ActionScheduler_Store{}
No Hooks.
Returns
String.
Usage
$ActionScheduler_Store = new ActionScheduler_Store(); $ActionScheduler_Store->has_pending_actions_due();
ActionScheduler_Store::has_pending_actions_due() ActionScheduler Store::has pending actions due code WC 10.6.2
public function has_pending_actions_due() {
$pending_actions = $this->query_actions(
array(
'per_page' => 1,
'date' => as_get_datetime_object(),
'status' => self::STATUS_PENDING,
'orderby' => 'none',
),
'count'
);
return ! empty( $pending_actions );
}