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