WC_Webhook_Data_Store::get_api_version_number()
Get API version number.
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. |
WC_Webhook_Data_Store::get_api_version_number() WC Webhook Data Store::get api version number code WC 9.4.2
public function get_api_version_number( $api_version ) { return 'legacy_v3' === $api_version ? -1 : intval( substr( $api_version, -1 ) ); }