WordPress at Your Fingertips
Log In . Register
  • About About Contacts RSS feed
  • WordPress WordPress Cheat Sheet Codex Sitemap REST API WP-CLI
  • Functions Functions Conditional Tags Template Tags By Files WordPress - all WooCommerce - all
  • Hooks Hooks Trigger Order WordPress - all WooCommerce - all
  • Notes Notes
› 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 10.3.6

woocommerce/includes/rest-api/Controllers/Version4/class-wc-rest-v4-controller.php
protected function get_api_version() {
	return 'v4';
}
WooCommerce
4680 reviews
5 ★
3870
4 ★
191
3 ★
104
2 ★
109
1 ★
406
90%
Download
Version10.4.2 — in 1 hour Changelog
Activated on7 000 000+ sites
Linkswordpress.org
woocommerce.com
Author Automattic
Tested onWP 6.9 Version compatibility
RequiresWP 6.8+
RequiresPHP 7.4+ Version compatibility
Created14.1 year ago

Testplugintests.com
Code ofplugins.svn.wordpress.org
Versions
10.4.2   10.4.1   10.4.0   ····
WP-CLIwp plugin install woocommerce --activate
Kama © 2010-2025
0.117 sec. 3 SQL. 5.5 MB
Contacts     Privacy policy
Upload image
DRAG and DROP or past from the CLIPBOARD