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