cartpops_cart_totals_subtotal_total_html

Filter the subtotal HTML.

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

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