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.8.7.0

apply_filters('woocommerce_order_discount_to_display') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 2239
    		 * 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.