wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_get_wp_version › WordPress Function

Since6.7.0
已弃用n/a
wp_get_wp_version ( 没有参数 )
返回:
  • (string) The current WordPress version.
定义在:
文档:

Returns the current WordPress version.

Returns an unmodified value of $wp_version. Some plugins modify the global in an attempt to improve security through obscurity. This practice can cause errors in WordPress, so the ability to get an unmodified version is needed.


源码

function wp_get_wp_version() {
	require ABSPATH . WPINC . '/version.php';

	return $wp_version;
}