ActionScheduler::is_initialized()public staticWC 1.0

Check whether the AS data store has been initialized.

{} Это метод класса: ActionScheduler{}

Хуков нет.

Возвращает

true|false.

Использование

$result = ActionScheduler::is_initialized( $function_name );
$function_name(строка)
The name of the function being called. Optional.
По умолчанию: null

Код ActionScheduler::is_initialized() WC 6.9.4

public static function is_initialized( $function_name = null ) {
	if ( ! self::$data_store_initialized && ! empty( $function_name ) ) {
		$message = sprintf( __( '%s() was called before the Action Scheduler data store was initialized', 'woocommerce' ), esc_attr( $function_name ) );
		error_log( $message, E_WARNING );
	}

	return self::$data_store_initialized;
}