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