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