woocommerce_variation_prices_array
Usage
add_filter( 'woocommerce_variation_prices_array', 'wp_kama_woocommerce_variation_prices_array_filter', 10, 3 ); /** * Function for `woocommerce_variation_prices_array` filter-hook. * * @param $prices_array * @param $variation * @param $for_display * * @return */ function wp_kama_woocommerce_variation_prices_array_filter( $prices_array, $variation, $for_display ){ // filter... return $prices_array; }
- $prices_array
- -
- $variation
- -
- $for_display
- -
Where the hook is called
woocommerce_variation_prices_array
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 369
$prices_array = apply_filters( 'woocommerce_variation_prices_array', $prices_array, $variation, $for_display );