WordPress at Your Fingertips
function is not described

WooCommerce::setup_environment() public WC 1.0

Ensure theme and server variable compatibility and setup image sizes.

{} It's a method of the class: WooCommerce{}

No Hooks.


null. Nothing.


$WooCommerce = new WooCommerce();

Code of WooCommerce::setup_environment() WC 5.6.0

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