woocommerce_empty_price_html
Returns the price in html format.
Usage
add_filter( 'woocommerce_empty_price_html', 'wp_kama_woocommerce_empty_price_html_filter', 10, 2 ); /** * Function for `woocommerce_empty_price_html` filter-hook. * * @param string $deprecated Deprecated param. * @param $that * * @return string */ function wp_kama_woocommerce_empty_price_html_filter( $deprecated, $that ){ // filter... return $deprecated; }
- $deprecated(string)
- Deprecated param.
- $that
- -
Where the hook is called
woocommerce_empty_price_html
woocommerce/includes/abstracts/abstract-wc-product.php 1940
$price = apply_filters( 'woocommerce_empty_price_html', '', $this );