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