WooCommerce::get_global()publicWC 1.0

Gets the value of a global.

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

Хуков нет.

Возвращает

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

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

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

Код WooCommerce::get_global() WC 8.7.0

public function get_global( string $global_name ) {
	return wc_get_container()->get( LegacyProxy::class )->get_global( $global_name );
}