woocommerce_rate_compound
Использование
add_filter( 'woocommerce_rate_compound', 'wp_kama_woocommerce_rate_compound_filter', 10, 2 ); /** * Function for `woocommerce_rate_compound` filter-hook. * * @param $compound * @param $key * * @return */ function wp_kama_woocommerce_rate_compound_filter( $compound, $key ){ // filter... return $compound; }
- $compound
- -
- $key
- -
Где вызывается хук
woocommerce_rate_compound
woocommerce/includes/class-wc-tax.php 659
return (bool) apply_filters( 'woocommerce_rate_compound', $compound, $key );