WooCommerce::setup_environment()
Ensure theme and server variable compatibility and setup image sizes.
Method of the class: WooCommerce{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->setup_environment();
WooCommerce::setup_environment() WooCommerce::setup environment code WC 9.2.3
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(); }