woocommerce_get_price_suffix
Usage
add_filter( 'woocommerce_get_price_suffix', 'wp_kama_woocommerce_get_price_suffix_filter', 10, 4 ); /** * Function for `woocommerce_get_price_suffix` filter-hook. * * @param $html * @param $that * @param $price * @param $qty * * @return */ function wp_kama_woocommerce_get_price_suffix_filter( $html, $that, $price, $qty ){ // filter... return $html; }
- $html
- -
- $that
- -
- $price
- -
- $qty
- -
Where the hook is called
woocommerce_get_price_suffix
woocommerce_get_price_suffix
woocommerce/includes/abstracts/abstract-wc-product.php 2147
return apply_filters( 'woocommerce_get_price_suffix', $html, $this, $price, $qty );
woocommerce/includes/class-wc-product-variable.php 204
return apply_filters( 'woocommerce_get_price_suffix', '', $this, $price, $qty );