wc_reset_loop() │ WC 3.3.0

Resets the woocommerce_loop global.

No Hooks.

Returns

void. Nothing (null).

Usage

wc_reset_loop();

Changelog

Since 3.3.0 Introduced.

wc_reset_loop() code WC 11.1.2

function wc_reset_loop() {
	unset( $GLOBALS['woocommerce_loop'] );
}