Automattic\WooCommerce\Proxies
LegacyProxy::get_global
Get the value of a global.
Method of the class: LegacyProxy{}
No Hooks.
Returns
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() LegacyProxy::get global code WC 10.5.0
public function get_global( string $global_name ) {
return $GLOBALS[ $global_name ];
}