cartpops_last_cart_item_classes

Filter the classes for the last cart item for any trigger other than the Drawer.

/**
 * Add or filter (specific) classes.
 *
 * @param array $classes Array of HTML class names.
 */
function my_prefix_classes_last_cart_item( $classes ) {
	$classes[] = 'custom-class';

	return $classes;
}
add_filter( 'cartpops_last_cart_item_classes', 'my_prefix_classes_last_cart_item', 10, 1 );

It's time to improve your WooCommerce Cart

CartPops is a WooCommerce Add To Cart Popup, that helps every shop owner improve their user experience, increase conversions & maximize profits.

Was this page helpful?