Filter the classes added to a single line item.
/**
* Add or filter (specific) classes.
*
* @param array $classes Array of HTML class names.
*/
function my_prefix_classes_alt_trigger( $classes ) {
$classes[] = 'custom-class';
return $classes;
}
add_filter( 'cartpops_alt_trigger_classes', 'my_prefix_classes_alt_trigger', 10, 1 );