Filter: tcp get shopping cart detail title

Description

“tcp_get_shopping_cart_detail_title” filter is used to filter the title displayed in the shopping cart detail widget.

Parameters

$title
(Text) Title of the Product.
$item
(Shopping Cart Item Object) Item which title is filtering.

Example

<?php
function my_tcp_get_shopping_cart_detail_title( $title, $item ) {
	if ( $item->hasAttributes() ) return $title . ' (+ attributes)';
	return $title;
}
add_filter( 'tcp_get_shopping_cart_detail_title', 'my_tcp_get_shopping_cart_detail_title' ); ?>

Change Log

Since 1.2.0

Related

tcp_shopping_cart_widget_item | tcp_cart_table_title_item