Automattic\WooCommerce\Admin\Features\ProductBlockEditor

ProductTemplate::to_jsonpublicWC 1.0

Get the product template as JSON-like data.

Method of the class: ProductTemplate{}

No Hooks.

Returns

Array.

Usage

$ProductTemplate = new ProductTemplate();
$ProductTemplate->to_json();

ProductTemplate::to_json() code WC 11.0.1

public function to_json() {
	self::maybe_log_removal_warning();

	return array();
}