WordPress at a glance
function is not described

wc_get_loop_prop() WC 3.3.0

Gets a property from the woocommerce_loop global.

No Hooks.

Return

Mixed. Nothing.

Usage

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

Changelog

Since 3.3.0 Introduced.

Code of wc_get_loop_prop() WC 5.2.2

<?php
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;
}