cartpops_drawer_coupon_form_classes

Filter the classes added to the Coupon form in the Drawer.

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

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