Astra_Theme_Extension::get_astra_theme_min_supported_version( string $input_version )
Get minimum supported version for Astra addon.
Description
This function will be used to inform the user about incompatible version of Astra addon.
Parameters
- $input_version
-
(string) (Required) Input version of the addon.
Source
File: classes/class-astra-theme-extension.php
public function get_astra_theme_min_supported_version( $input_version ) { if ( version_compare( ASTRA_THEME_VERSION, ASTRA_THEME_MIN_VER ) < 0 ) { return ASTRA_THEME_MIN_VER; } $supported_version = ''; // First, check if the exact version is supported if ( isset( self::$astra_theme_supported_version_map[ $input_version ] ) ) { $supported_version = self::$astra_theme_supported_version_map[ $input_version ]; } else { foreach ( self::$astra_theme_supported_version_map as $index => $supported ) { if ( '' !== $supported_version || version_compare( $input_version, $index ) > 0 ) { $supported_version = $supported; break; } } } return $supported_version; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |