WordPress at a glance
function is not described

wc_set_loop_prop() WC 3.3.0

Sets a property in the woocommerce_loop global.

No Hooks.

Return

null. Nothing.

Usage

wc_set_loop_prop( $prop, $value );
$prop(string) (required)
Prop to set.
$value(string)
Value to set.

Changelog

Since 3.3.0 Introduced.

Code of wc_set_loop_prop() WC 5.2.2

<?php
function wc_set_loop_prop( $prop, $value = '' ) {
	if ( ! isset( $GLOBALS['woocommerce_loop'] ) ) {
		wc_setup_loop();
	}
	$GLOBALS['woocommerce_loop'][ $prop ] = $value;
}