Description
The “tcp_after_loop_tcp_grid_item” action is used to add elements into the TheCartPress loop. This loop is used in widgets, shortcodes and in the default TheCartPress loop.
Parameters
- $post_id
- (Integer) The ID of the current product in the loop.
Example
<?php function my tcp_after_loop_tcp_grid_item( $post_id ) { echo '<p>Into the loop: ', $post_id, '</p>'; } add_action( 'tcp_after_loop_tcp_grid_item', 'my_tcp_after_loop_tcp_grid_item' );
Change Log
Since 1.1.6