woocommerce_order_get_subtotal

woocommerce_order_get_subtotal

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_order_get_subtotal') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 524
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    * @return float
     */
    public function get_subtotal() {
        $subtotal = NumberUtil::round( $this->get_cart_subtotal_for_order(), wc_get_price_decimals() );
        return apply_filters( 'woocommerce_order_get_subtotal', (float) $subtotal, $this );
    }
     
    /**
     * Get taxes, merged by code, formatted ready for output.
     *
     * @return array