woocommerce_product_variation_title
Usage
add_filter( 'woocommerce_product_variation_title', 'wp_kama_woocommerce_product_variation_title_filter', 10, 4 ); /** * Function for `woocommerce_product_variation_title` filter-hook. * * @param $title_base $separator $title_suffix * @param $product * @param $title_base * @param $title_suffix * * @return */ function wp_kama_woocommerce_product_variation_title_filter( $title_base $separator $title_suffix, $product, $title_base, $title_suffix ){ // filter... return $title_base $separator $title_suffix; }
- $title_base $separator $title_suffix
- -
- $product
- -
- $title_base
- -
- $title_suffix
- -
Where the hook is called
woocommerce_product_variation_title
woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php 316
return apply_filters( 'woocommerce_product_variation_title', $title_suffix ? $title_base . $separator . $title_suffix : $title_base, $product, $title_base, $title_suffix );