wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_wp_version › WordPress Function

Desde6.7.0
Obsoleton/a
wp_get_wp_version ( Sem parâmetros )
Retorna:
  • (string) The current WordPress version.
Definido em:
Codex:

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.


Fonte

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

	return $wp_version;
}