WordPress at Your Fingertips
function is not described

WC_AJAX::get_cart_totals() public WC 1.0

AJAX receive updated cart_totals div.

{} It's a method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_AJAX::get_cart_totals();

Code of WC_AJAX::get_cart_totals() WC 5.9.0

public static function get_cart_totals() {
	wc_maybe_define_constant( 'WOOCOMMERCE_CART', true );
	WC()->cart->calculate_totals();
	woocommerce_cart_totals();
	wp_die();
}