(hook_prefix)tax_class
Использование
add_filter( '(hook_prefix)tax_class', 'wp_kama_hook_prefixtax_class_filter', 10, 2 );
/**
* Function for `(hook_prefix)tax_class` filter-hook.
*
* @param $value
* @param $that
*
* @return
*/
function wp_kama_hook_prefixtax_class_filter( $value, $that ){
// filter...
return $value;
}
- $value
- -
- $that
- -
Где вызывается хук
(hook_prefix)tax_class
woocommerce/includes/class-wc-product-variation.php 310
$value = apply_filters( $this->get_hook_prefix() . 'tax_class', $value, $this );