Automattic\WooCommerce\Blueprint

ImportSchema::create_from_filepublic staticWC 1.0

Create an ImportSchema instance from a file.

Method of the class: ImportSchema{}

No Hooks.

Returns

ImportSchema. The created ImportSchema instance.

Usage

$result = ImportSchema::create_from_file( $file );
$file(string) (required)
The file path.

ImportSchema::create_from_file() code WC 9.9.5

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