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 );
}

Changelog

Changelog
Version Description
3.9.2 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.