woocommerce_get_formatted_order_total

woocommerce_get_formatted_order_total

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_get_formatted_order_total') is found 2 times:

  • /includes/abstracts/abstract-wc-order.php line 2178
    2174
    2175
    2176
    2177
    2178
    2179
    2180
    2181
    2182
    2183
    2184
    * @return string
     */
    public function get_formatted_order_total() {
        $formatted_total = wc_price( $this->get_total(), array( 'currency' => $this->get_currency() ) );
        return apply_filters( 'woocommerce_get_formatted_order_total', $formatted_total, $this );
    }
     
    /**
     * Gets subtotal - subtotal is shown before discounts, but with localised taxes.
     *
     * @param bool   $compound (default: false).
  • /includes/class-wc-order.php line 246
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
         * @param WC_Order $order            Order data.
         * @param string   $tax_display      Type of tax display.
         * @param bool     $display_refunded If should include refunded value.
         */
        return apply_filters( 'woocommerce_get_formatted_order_total', $formatted_total, $this, $tax_display, $display_refunded );
    }
     
    /*
    |--------------------------------------------------------------------------
    | CRUD methods
    |--------------------------------------------------------------------------