woocommerce_analytics_update_product

woocommerce_analytics_update_product

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_analytics_update_product') is found 1 times:

  • /src/Admin/API/Reports/Products/DataStore.php line 505
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
         *
         * @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 ) ) {