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)


Top ↑

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();
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.