Provider::version_compare( string $version, string $operator = '>=' )

Checks the version of Yoast SEO against a given Version.


Parameters

$version

(string) (Required) The version of Yoast we are comparing the installed version to.

$operator

(string) (Optional) The comparison operator. Defaults to >=

Default value: '>='


Top ↑

Return

(bool)


Top ↑

Source

File: src/Events/Integrations/Plugins/WordPress_SEO/Provider.php

	public function version_compare( $version, $operator = '>=' ): bool {
		return defined( 'WPSEO_VERSION' )
			&& version_compare( WPSEO_VERSION, $version, $operator );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.8 Introduced.