woocommerce_get_stock_html хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_get_stock_html', 'filter_function_name_4468', 10, 2 ); function filter_function_name_4468( $html, $product ){ // filter... return $html; }
- $html
- -
- $product
- -
Где вызывается хук
woocommerce_get_stock_html
woocommerce/includes/wc-template-functions.php 3479
return apply_filters( 'woocommerce_get_stock_html', $html, $product );