WordPress at Your Fingertips
Log In . Register
  • About About Contacts RSS feed
  • WordPress WordPress Cheat Sheet Codex Sitemap (WP) REST API Plugin Theme WP-CLI
  • Functions Functions Conditional Tags Template Tags By Files WordPress - all WooCommerce - all ACF - all
  • Hooks Hooks Trigger Order WordPress - all WooCommerce - all
  • Notes Notes
  • Plugins Plugins
› Plugins › WooCommerce › All Functions › WC_REST_V4_Controller ›
function is not described

WC_REST_V4_Controller::get_api_version │ protected │ WC 1.0

Get the default REST API version.

Method of the class: WC_REST_V4_Controller{}

No Hooks.

Returns

string.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_api_version();

WC_REST_V4_Controller::get_api_version() WC REST V4 Controller::get api version code WC 11.0.1

woocommerce/includes/rest-api/Controllers/Version4/class-wc-rest-v4-controller.php
protected function get_api_version() {
	return 'v4';
}
WooCommerce
4820 reviews
5 ★
3994
4 ★
197
3 ★
113
2 ★
107
1 ★
409
90%
Download
Version11.0.1 — 22 days ago Changelog
Activated on7 000 000+ sites
Linkswordpress.org
woocommerce.com
Author Automattic
Tested onWP 7.0.4 Version compatibility
RequiresWP 6.9+
RequiresPHP 7.4+ Version compatibility
Created14.9 years ago

Testplugintests.com
Code ofplugins.svn.wordpress.org
Versions
11.0.1   11.0.0   10.9.4   ····
WP-CLIwp plugin install woocommerce --activate
Kama © 2010-2026
0.270 sec. 4 SQL. 5.81 MB
Contacts     Privacy policy
Upload image
DRAG and DROP or past from the CLIPBOARD