WC_Products_Tracking::track_product_updated( int $product_id, object $post )
Send a Tracks event when a product is updated.
Description Description
Parameters Parameters
- $product_id
-
(Required) Product id.
- $post
-
(Required) WordPress post.
Source Source
File: includes/tracks/events/class-wc-products-tracking.php
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 ); }