Action: tcp get shopping cart detail hidden fields

Description

“tcp_get_shopping_cart_detail_hidden_fields” action is used to add hidden fields to the Shopping Cart Detail widget.

Parameters

$item
(Shopping Cart Item Object) Item which title is filtering.

Example

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

Change Log

Since 1.2.0