cartpops_drawer_empty_cart_classes

Filter the classes added to the Drawer when the cart is empty.

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

	return $classes;
}
add_filter( 'cartpops_drawer_empty_cart_classes', 'my_prefix_classes_empty_drawer', 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?