woocommerce_get_stock_html
Usage
add_filter( 'woocommerce_get_stock_html', 'wp_kama_woocommerce_get_stock_html_filter', 10, 2 ); /** * Function for `woocommerce_get_stock_html` filter-hook. * * @param $html * @param $product * * @return */ function wp_kama_woocommerce_get_stock_html_filter( $html, $product ){ // filter... return $html; }
- $html
- -
- $product
- -
Where the hook is called
woocommerce_get_stock_html
woocommerce/includes/wc-template-functions.php 3684
return apply_filters( 'woocommerce_get_stock_html', $html, $product );