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 );