woocommerce_variation_prices_sale_price
Usage
add_filter( 'woocommerce_variation_prices_sale_price', 'wp_kama_woocommerce_variation_prices_sale_price_filter', 10, 3 ); /** * Function for `woocommerce_variation_prices_sale_price` filter-hook. * * @param $variation_sale_price * @param $variation * @param $product * * @return */ function wp_kama_woocommerce_variation_prices_sale_price_filter( $variation_sale_price, $variation, $product ){ // filter... return $variation_sale_price; }
- $variation_sale_price
- -
- $variation
- -
- $product
- -
Where the hook is called
woocommerce_variation_prices_sale_price
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 304
$sale_price = apply_filters( 'woocommerce_variation_prices_sale_price', $variation->get_sale_price( 'edit' ), $variation, $product );