woocommerce_order_subtotal_to_display
Usage
add_filter( 'woocommerce_order_subtotal_to_display', 'wp_kama_woocommerce_order_subtotal_to_display_filter', 10, 3 ); /** * Function for `woocommerce_order_subtotal_to_display` filter-hook. * * @param $subtotal * @param $compound * @param $that * * @return */ function wp_kama_woocommerce_order_subtotal_to_display_filter( $subtotal, $compound, $that ){ // filter... return $subtotal; }
- $subtotal
- -
- $compound
- -
- $that
- -
Where the hook is called
woocommerce_order_subtotal_to_display
woocommerce/includes/abstracts/abstract-wc-order.php 2180
return apply_filters( 'woocommerce_order_subtotal_to_display', $subtotal, $compound, $this );