Filter: tcp cart table title item

Description

“tcp_cart_table_title_item” filter is used to filter the title displayed in the Shopping Cart page.

Parameters

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

Example

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

Change Log

Since 1.2.0

Related

tcp_get_shopping_cart_detail_title