wc_cart_totals_subtotal_html()WC 1.0

Get the subtotal.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

wc_cart_totals_subtotal_html();

Код wc_cart_totals_subtotal_html() WC 8.7.0

function wc_cart_totals_subtotal_html() {
	echo WC()->cart->get_cart_subtotal(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}