woocommerce_variation_prices_sale_price, $variation->get_sale_price( edit

woocommerce_variation_prices_sale_price, $variation->get_sale_price( edit

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_variation_prices_sale_price, $variation->get_sale_price( edit') is found 1 times:

  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 428
    						 * @param string|float  $sale_price The variation's sale price.
    						 * @param WC_Product    $variation  The variation product object.
    						 * @param WC_Product    $product    The parent variable product object.
    						 */
    						$sale_price = apply_filters( 'woocommerce_variation_prices_sale_price', $variation->get_sale_price( 'edit' ), $variation, $product );
    
    						// If sale price does not equal price, the product is not yet on sale.
    						if ( $sale_price === $regular_price || $sale_price !== $price ) {
    							$sale_price = $regular_price;
    						}