Automattic\WooCommerce\Internal\Utilities
ActionSchedulerUtil::can_check_scheduled_actions
Can {@see self::has_scheduled_action()} actually query Action Scheduler, or would it report false only because neither function it relies on is loaded?
Method of the class: ActionSchedulerUtil{}
No Hooks.
Returns
bool. True if a scheduled-action check can be answered, false otherwise.
Usage
$result = ActionSchedulerUtil::can_check_scheduled_actions(): bool;
Changelog
| Since 11.2.0 | Introduced. |
ActionSchedulerUtil::can_check_scheduled_actions() ActionSchedulerUtil::can check scheduled actions code WC 11.3.0
public static function can_check_scheduled_actions(): bool {
return function_exists( 'as_has_scheduled_action' ) || function_exists( 'as_next_scheduled_action' );
}