Automattic\WooCommerce\Admin\Features\ProductBlockEditor

Tracks::add_product_source()publicWC 1.0

Update the product source if we're on the product editor page.

Method of the class: Tracks{}

No Hooks.

Return

String.

Usage

$Tracks = new Tracks();
$Tracks->add_product_source( $source );
$source(string) (required)
Source of product.

Tracks::add_product_source() code WC 9.0.1

public function add_product_source( $source ) {
	if ( $this->is_product_editor_page( wp_get_referer() ) ) {
		return 'product-block-editor-v1';
	}

	return $source;
}