WooCommerce::setup_environment()publicWC 1.0

Ensure theme and server variable compatibility and setup image sizes.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WooCommerce = new WooCommerce();
$WooCommerce->setup_environment();

Код WooCommerce::setup_environment() WC 6.9.4

public function setup_environment() {
	/**
	 * WC_TEMPLATE_PATH constant.
	 *
	 * @deprecated 2.2 Use WC()->template_path() instead.
	 */
	$this->define( 'WC_TEMPLATE_PATH', $this->template_path() );

	$this->add_thumbnail_support();
}