WooCommerce Code Reference

Package
in package

Main package class.

Tags
deprecated

Use \Automattic\WooCommerce\RestApi\Server directly.

Table of Contents

VERSION  = WC_VERSION
Version.
get_path()  : string
Return the path to the package.
get_version()  : string
Return the version of the package.
init()  : mixed
Init the package - load the REST API Server class.

Constants

VERSION

Version.

public string VERSION = WC_VERSION
Tags
deprecated

since 4.5.0. This tracks WooCommerce version now.

Methods

get_path()

Return the path to the package.

public static get_path() : string
Tags
deprecated

since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::get_path()

Return values
string

get_version()

Return the version of the package.

public static get_version() : string
Tags
deprecated

since 4.5.0. This tracks WooCommerce version now.

Return values
string

init()

Init the package - load the REST API Server class.

public static init() : mixed
Tags
deprecated

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

Return values
mixed