WordPress at a glance
function is not described

woocommerce_widget_shopping_cart_subtotal() WC 3.7.0

Output to view cart subtotal.

No Hooks.

Return

null. Nothing.

Usage

woocommerce_widget_shopping_cart_subtotal();

Changelog

Since 3.7.0 Introduced.

Code of woocommerce_widget_shopping_cart_subtotal() WC 5.3.0

<?php
function woocommerce_widget_shopping_cart_subtotal() {
	echo '<strong>' . esc_html__( 'Subtotal:', 'woocommerce' ) . '</strong> ' . WC()->cart->get_cart_subtotal(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}