(hook_prefix)weight хук-фильтр . WC 1.0
Inherit value from parent.
Использование
add_filter( '(hook_prefix)weight', 'filter_function_name_6428', 10, 2 ); function filter_function_name_6428( $parent_data_weight, $that ){ // filter... return $parent_data_weight; }
- $parent_data_weight
- -
- $that
- -
Где вызывается хук
(hook_prefix)weight
woocommerce/includes/class-wc-product-variation.php 233
$value = apply_filters( $this->get_hook_prefix() . 'weight', $this->parent_data['weight'], $this );