Automattic\WooCommerce\Blueprint
ImportSchema::create_from_json
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() ImportSchema::create from json WC 10.0.2
public static function create_from_json( $json_path ) { return new self( new JsonSchema( $json_path ) ); }