WooCommerce::get_global()publicWC 1.0

Gets the value of a global.

Method of the class: WooCommerce{}

No Hooks.

Return

Mixed. The value of the global.

Usage

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

WooCommerce::get_global() code WC 8.7.0

public function get_global( string $global_name ) {
	return wc_get_container()->get( LegacyProxy::class )->get_global( $global_name );
}