Automattic\WooCommerce\Proxies

LegacyProxy::get_global()publicWC 1.0

Get the value of a global.

Method of the class: LegacyProxy{}

No Hooks.

Return

Mixed. The value of the global.

Usage

$LegacyProxy = new LegacyProxy();
$LegacyProxy->get_global( $global_name );
$global_name(string) (required)
The name of the global to get the value for.

LegacyProxy::get_global() code WC 7.1.0

public function get_global( string $global_name ) {
	return $GLOBALS[ $global_name ];
}