Action: tcp shopping cart widget item

Description

“tcp_shopping_cart_widget_item” action is used to add item description in the Shopping Cart Detail Widget.

Example

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

Change Log

Since 1.0.8

Related

tcp_get_shopping_cart_detail_title