WordPress at Your Fingertips
function is not described

wc_get_loop_prop() WC 3.3.0

Gets a property from the woocommerce_loop global.

No Hooks.

Return

Mixed.

Usage

wc_get_loop_prop( $prop, $default );
$prop(string) (required)
Prop to get.
$default(string)
Default if the prop does not exist.
Default: ''

Changelog

Since 3.3.0 Introduced.

Code of wc_get_loop_prop() WC 5.6.0

function wc_get_loop_prop( $prop, $default = '' ) {
	wc_setup_loop(); // Ensure shop loop is setup.

	return isset( $GLOBALS['woocommerce_loop'], $GLOBALS['woocommerce_loop'][ $prop ] ) ? $GLOBALS['woocommerce_loop'][ $prop ] : $default;
}