is_wp_version_compatible()
is_wp_version_compatible( string $required )
检查与当前WordPress版本的兼容性。
Checks compatibility with the current WordPress version.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$required | (string) | 必需 | 最低要求的WordPress版本。 |
返回(Return)
(bool)如果所需版本兼容,则为True;如果不兼容,则为false。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.2.0 | wp-includes/functions.php:7565 | 3 | 1 function |
is_wp_version_compatible() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_wp_version_compatible/