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
