WooCommerce::get_global()
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() WooCommerce::get global code WC 9.2.3
public function get_global( string $global_name ) { return wc_get_container()->get( LegacyProxy::class )->get_global( $global_name ); }