WordPress at Your Fingertips
function is not described

WC_Products_Tracking::track_product_updated() public WC 1.0

Send a Tracks event when a product is updated.

{} It's a method of the class: WC_Products_Tracking{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Products_Tracking = new WC_Products_Tracking();
$WC_Products_Tracking->track_product_updated( $product_id, $post );
$product_id(int) (required)
Product id.
$post(object) (required)
WordPress post.

Code of WC_Products_Tracking::track_product_updated() WC 5.8.0

public function track_product_updated( $product_id, $post ) {
	if ( 'product' !== $post->post_type ) {
		return;
	}

	$properties = array(
		'product_id' => $product_id,
	);

	WC_Tracks::record_event( 'product_edit', $properties );
}