Automattic\WooCommerce\Proxies
LegacyProxy::get_global()
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() LegacyProxy::get global code WC 9.6.1
public function get_global( string $global_name ) { return $GLOBALS[ $global_name ]; }