woocommerce_product_title filter-hookWC 1.0

Get the product's title. For variations this is the parent product name.

Usage

add_filter( 'woocommerce_product_title', 'wp_kama_woocommerce_product_title_filter', 10, 2 );

/**
 * Function for `woocommerce_product_title` filter-hook.
 * 
 * @param  $parent_data_title 
 * @param  $that              
 *
 * @return 
 */
function wp_kama_woocommerce_product_title_filter( $parent_data_title, $that ){

	// filter...
	return $parent_data_title;
}
$parent_data_title
-
$that
-

Where the hook is called

WC_Product_Variation::get_title()
woocommerce_product_title
WC_Product::get_title()
woocommerce_product_title
woocommerce/includes/class-wc-product-variation.php 92
return apply_filters( 'woocommerce_product_title', $this->parent_data['title'], $this );
woocommerce/includes/abstracts/abstract-wc-product.php 1837
return apply_filters( 'woocommerce_product_title', $this->get_name(), $this );

Where the hook is used in WooCommerce

Usage not found.