WordPress at Your Fingertips
function is not described


Package::init() public WC 1.0

Deprecated from version since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::instance()->init(). It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Init the package - load the REST API Server class.

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

No Hooks.


null. Nothing.


$result = Package::init();


Deprecated Since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::instance()->init()

Code of Package::init() WC 6.1.0

public static function init() {
	wc_deprecated_function( 'Automattic\WooCommerce\RestApi\Server::instance()->init()', '4.5.0' );