woocommerce_stock_html хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_stock_html', 'filter_function_name_1375', 10, 3 ); function filter_function_name_1375( $html, $availability_availability, $product ){ // filter... return $html; }
- $html
- -
- $availability_availability
- -
- $product
- -
Где вызывается хук
woocommerce_stock_html
woocommerce/includes/wc-template-functions.php 3476
$html = apply_filters( 'woocommerce_stock_html', $html, $availability['availability'], $product );