WooCommerce::stable_version
Get the WooCommerce version.
Method of the class: WooCommerce{}
No Hooks.
Returns
String. The WooCommerce version.
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->stable_version(): string;
Changelog
| Since 10.3.0 | Introduced. |
WooCommerce::stable_version() WooCommerce::stable version code WC 10.7.0
public function stable_version(): string {
return explode( '-', $this->version, 2 )[0];
}