WordPress at Your Fingertips
function is not described

WC_Webhook_Data_Store::get_api_version_number() public WC 3.3.0

Get API version number.

{} It's a method of the class: WC_Webhook_Data_Store{}

No Hooks.

Return

Int.

Usage

$WC_Webhook_Data_Store = new WC_Webhook_Data_Store();
$WC_Webhook_Data_Store->get_api_version_number( $api_version );
$api_version(string) (required)
REST API version.

Changelog

Since 3.3.0 Introduced.

Code of WC_Webhook_Data_Store::get_api_version_number() WC 5.8.0

public function get_api_version_number( $api_version ) {
	return 'legacy_v3' === $api_version ? -1 : intval( substr( $api_version, -1 ) );
}