woocommerce_get_variation_sale_price

woocommerce_get_variation_sale_price

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_get_variation_sale_price') is found 1 times:

  • /includes/class-wc-product-variable.php line 129
    	public function get_variation_sale_price( $min_or_max = 'min', $for_display = false ) {
    		$prices = $this->get_variation_prices( $for_display );
    		$price  = 'min' === $min_or_max ? current( $prices['sale_price'] ) : end( $prices['sale_price'] );
    
    		return apply_filters( 'woocommerce_get_variation_sale_price', $price, $this, $min_or_max, $for_display );
    	}
    
    	/**
    	 * Get the min or max variation (active) price.
    	 *
    	 * @param  string  $min_or_max Min or max price.