Automattic\WooCommerce\Proxies

LegacyProxy::get_global()publicWC 1.0

Get the value of a global.

Метод класса: LegacyProxy{}

Хуков нет.

Возвращает

Разное. The value of the global.

Использование

$LegacyProxy = new LegacyProxy();
$LegacyProxy->get_global( $global_name );
$global_name(строка) (обязательный)
The name of the global to get the value for.

Код LegacyProxy::get_global() WC 8.7.0

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