woocommerce_analytics_update_product

woocommerce_analytics_update_product

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_analytics_update_product') is found 1 times:

  • /src/Admin/API/Reports/Products/DataStore.php line 504
    			 *
    			 * @param int $order_item_id Order Item ID.
    			 * @param int $order_id      Order ID.
    			 */
    			do_action( 'woocommerce_analytics_update_product', $order_item_id, $order->get_id() );
    
    			// Sum the rows affected. Using REPLACE can affect 2 rows if the row already exists.
    			$num_updated += 2 === intval( $result ) ? 1 : intval( $result );
    		}
    
    		if ( ! empty( $existing_items ) ) {