astra_addon_check_version( string $version, string $compare )
Check the Astra addon version.
Description
For major update and frequently we used version_compare, added a function for this for easy maintenance.
Parameters
- $version
-
(string) (Required) Astra addon version.
- $compare
-
(string) (Required) Compare symbols.
Source
File: inc/extras.php
function astra_addon_check_version( $version, $compare ) {
return defined( 'ASTRA_EXT_VER' ) && version_compare( ASTRA_EXT_VER, $version, $compare );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.9.2 | Introduced. |