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