Provider::version_compare( string $version, string $operator = '>=' )
Checks the version of Yoast SEO against a given Version.
Contents
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: '>='
Return
(bool)
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 );
}
Changelog
| Version | Description |
|---|---|
| 6.0.8 | Introduced. |