Automattic\WooCommerce\Blueprint

ImportSchema::create_from_jsonpublic staticWC 1.0

Create an ImportSchema instance from a JSON file.

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

Хуков нет.

Возвращает

ImportSchema. The created ImportSchema instance.

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

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

Код ImportSchema::create_from_json() WC 10.0.2

public static function create_from_json( $json_path ) {
	return new self( new JsonSchema( $json_path ) );
}