woocommerce_variable_price_html
Использование
add_filter( 'woocommerce_variable_price_html', 'wp_kama_woocommerce_variable_price_html_filter', 10, 2 );
/**
* Function for `woocommerce_variable_price_html` filter-hook.
*
* @param $price_suffix
* @param $that
*
* @return
*/
function wp_kama_woocommerce_variable_price_html_filter( $price_suffix, $that ){
// filter...
return $price_suffix;
}
- $price_suffix
- -
- $that
- -
Где вызывается хук
woocommerce/includes/class-wc-product-variable.php 186
$price = apply_filters( 'woocommerce_variable_price_html', $price . $this->get_price_suffix(), $this );