woocommerce_variable_price_html хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_variable_price_html', 'filter_function_name_2145', 10, 2 ); function filter_function_name_2145( $price . $price_suffix, $that ){ // filter... return $price . $price_suffix; }
- $price . $price_suffix
- -
- $that
- -
Где вызывается хук
woocommerce/includes/class-wc-product-variable.php 167
$price = apply_filters( 'woocommerce_variable_price_html', $price . $this->get_price_suffix(), $this );