woocommerce_get_price_html
Usage
add_filter( 'woocommerce_get_price_html', 'wp_kama_woocommerce_get_price_html_filter', 10, 2 );
/**
* Function for `woocommerce_get_price_html` filter-hook.
*
* @param $price
* @param $that
*
* @return
*/
function wp_kama_woocommerce_get_price_html_filter( $price, $that ){
// filter...
return $price;
}
- $price
- -
- $that
- -
Where the hook is called
woocommerce_get_price_html
woocommerce_get_price_html
woocommerce/includes/abstracts/abstract-wc-product.php 2031
return apply_filters( 'woocommerce_get_price_html', $price, $this );
woocommerce/includes/class-wc-product-grouped.php 130
return apply_filters( 'woocommerce_get_price_html', $price, $this );
woocommerce/includes/class-wc-product-variable.php 189
return apply_filters( 'woocommerce_get_price_html', $price, $this );