woocommerce_empty_price_html

woocommerce_empty_price_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_empty_price_html') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 1914
    	 * @return string
    	 */
    	public function get_price_html( $deprecated = '' ) {
    		if ( '' === $this->get_price() ) {
    			$price = apply_filters( 'woocommerce_empty_price_html', '', $this );
    		} elseif ( $this->is_on_sale() ) {
    			$price = wc_format_sale_price( wc_get_price_to_display( $this, array( 'price' => $this->get_regular_price() ) ), wc_get_price_to_display( $this ) ) . $this->get_price_suffix();
    		} else {
    			$price = wc_price( wc_get_price_to_display( $this ) ) . $this->get_price_suffix();
    		}