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.7.0

woocommerce/includes/rest-api/Controllers/Version4/class-wc-rest-v4-controller.php
protected function get_api_version() {
	return 'v4';
}
WooCommerce
4801 review
5 ★
3977
4 ★
196
3 ★
112
2 ★
108
1 ★
408
90%
Download
Version10.8.1 — 13 days ago Changelog
Activated on7 000 000+ sites
Linkswordpress.org
woocommerce.com
Author Automattic
Tested onWP 7.0 Version compatibility
RequiresWP 6.9+
RequiresPHP 7.4+ Version compatibility
Created14.6 years ago

Testplugintests.com
Code ofplugins.svn.wordpress.org
Versions
10.8.1   10.8.0   10.7.0   ····
WP-CLIwp plugin install woocommerce --activate
Kama © 2010-2026
0.126 sec. 4 SQL. 5.69 MB
Contacts     Privacy policy
Upload image
DRAG and DROP or past from the CLIPBOARD