cartpops_single_line_item_classes

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

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?