Automattic\WooCommerce\Blueprint

ImportSchema::create_from_filepublic staticWC 1.0

Create an ImportSchema instance from a file.

Метод класса: ImportSchema{}

Хуков нет.

Возвращает

ImportSchema. The created ImportSchema instance.

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

$result = ImportSchema::create_from_file( $file );
$file(строка) (обязательный)
The file path.

Код ImportSchema::create_from_file() WC 10.0.2

public static function create_from_file( $file ) {
	return self::create_from_json( $file );
}