woocommerce_get_price_html

woocommerce_get_price_html

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_get_price_html') is found 3 times:

  • /includes/abstracts/abstract-wc-product.php line 1947
    1943
    1944
    1945
    1946
    1947
    1948
    1949
    1950
    1951
    1952
    1953
        } else {
            $price = wc_price( wc_get_price_to_display( $this ) ) . $this->get_price_suffix();
        }
     
        return apply_filters( 'woocommerce_get_price_html', $price, $this );
    }
     
    /**
     * Returns the Cost of Goods Sold value in html format.
     *
     * @return string
  • /includes/class-wc-product-grouped.php line 130
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
        } else {
            $price = apply_filters( 'woocommerce_grouped_empty_price_html', '', $this );
        }
     
        return apply_filters( 'woocommerce_get_price_html', $price, $this );
    }
     
    /*
    |--------------------------------------------------------------------------
    | Getters
    |--------------------------------------------------------------------------
  • /includes/class-wc-product-variable.php line 189
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
            $price = apply_filters( 'woocommerce_variable_price_html', $price . $this->get_price_suffix(), $this );
        }
     
        return apply_filters( 'woocommerce_get_price_html', $price, $this );
    }
     
    /**
     * Get the suffix to display after prices > 0.
     *
     * This is skipped if the suffix