Automattic\WooCommerce\Utilities

PluginUtil::init()publicWC 1.0

Initialize the class instance.

Method of the class: PluginUtil{}

No Hooks.

Return

null. Nothing (null).

Usage

$PluginUtil = new PluginUtil();
$PluginUtil->init( $proxy );
$proxy(LegacyProxy) (required)
The instance of LegacyProxy to use.

PluginUtil::init() code WC 9.0.1

final public function init( LegacyProxy $proxy ) {
	$this->proxy = $proxy;
	require_once ABSPATH . WPINC . '/plugin.php';
}