cartpops_cart_totals_discount_total_html

Filter the discount total HTML.

/**
 * Filter the discount total HTML.
 *
 * @param string $html String containing HTML.
 */
function my_prefix_html_discount_total( $html ) {
	// do something with $html

	return $html;
}
add_filter( 'cartpops_cart_totals_discount_total_html', 'my_prefix_html_discount_total', 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?