WC_API::get_rest_api_package_version()
Get the version of the REST API package being ran. Since API package was merged into core, this now follows WC version.
Description Description
Return Return
(string|null)
Source Source
File: includes/class-wc-api.php
public function get_rest_api_package_version() { if ( ! $this->is_rest_api_loaded() ) { return null; } return \Automattic\WooCommerce\RestApi\Package::get_version(); }
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |