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?
Метод класса: ActionSchedulerUtil{}
Хуков нет.
Возвращает
bool. True if a scheduled-action check can be answered, false otherwise.
Использование
$result = ActionSchedulerUtil::can_check_scheduled_actions(): bool;
Список изменений
| С версии 11.2.0 | Введена. |
Код ActionSchedulerUtil::can_check_scheduled_actions() ActionSchedulerUtil::can check scheduled actions 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' );
}