Automattic\WooCommerce\Blueprint
ImportSchema::create_from_json
Create an ImportSchema instance from a JSON file.
Method of the class: ImportSchema{}
No Hooks.
Returns
ImportSchema
. The created ImportSchema instance.
Usage
$result = ImportSchema::create_from_json( $json_path );
- $json_path(string) (required)
- The JSON file path.
ImportSchema::create_from_json() ImportSchema::create from json code WC 9.9.5
public static function create_from_json( $json_path ) { return new self( new JsonSchema( $json_path ) ); }