woocommerce_order_discount_to_display

woocommerce_order_discount_to_display

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_order_discount_to_display') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 2287
    2283
    2284
    2285
    2286
    2287
    2288
    2289
    2290
    2291
    2292
    2293
         * Filter the discount amount to display.
         *
         * @since 2.7.0.
         */
        return apply_filters( 'woocommerce_order_discount_to_display', wc_price( $this->get_total_discount( 'excl' === $tax_display ), array( 'currency' => $this->get_currency() ) ), $this );
    }
     
    /**
     * Add total row for subtotal.
     *
     * @param array  $total_rows Reference to total rows array.