woocommerce_analytics_update_order_stats

woocommerce_analytics_update_order_stats

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_analytics_update_order_stats') is found 1 times:

  • /src/Admin/API/Reports/Orders/Stats/DataStore.php line 588
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
         * @param int $order_id Order ID.
         *
         * @since 4.0.0.
         */
        do_action( 'woocommerce_analytics_update_order_stats', $order->get_id() );
     
        // Check the rows affected for success. Using REPLACE can affect 2 rows if the row already exists.
        return ( 1 === $result || 2 === $result );
    }
     
    /**