Description

Checks is the WP Geo version is greater or equal to $version.

Usage

<?php wpgeo_check_version( $version ); ?>

Parameters

$version
(string) WP Geo version. Can be in the format major.minor.revision. See php version_compare() function for more details.

Examples

Check if the WP Geo version is 2.1.1 or higher.

<?php
if ( wpgeo_check_version( 2.1.1 ) ) {
	// WP Geo version is 2.1.1 or higher
}
?>

Change Log

Since: 3.2

Source File

wpgeo_check_version() is located in wp-includes/functions.php.

Related

wpgeo_check_db_version

Leave a Reply