Automattic\WooCommerce\RestApi
Package::init
Deprecated since since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::instance()->init(). It is no longer supported and may 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.
Method of the class: Package{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Package::init();
Changelog
| Deprecated | Since 4.5.0. | Directly call Automattic\WooCommerce\RestApi\Server::instance()->init() |
Package::init() Package::init code WC 11.3.0
public static function init() {
wc_deprecated_function( 'Automattic\WooCommerce\RestApi\Server::instance()->init()', '4.5.0' );
\Automattic\WooCommerce\RestApi\Server::instance()->init();
}