WC_API::get_rest_api_package_path()
Get the version of the REST API package being ran.
Description Description
Return Return
(string)
Source Source
File: includes/class-wc-api.php
public function get_rest_api_package_path() {
if ( ! $this->is_rest_api_loaded() ) {
return null;
}
return \Automattic\WooCommerce\RestApi\Package::get_path();
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |