wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_get_wp_version › WordPress Function

Seit6.7.0
Veraltetn/v
wp_get_wp_version ( Keine Parameter )
Gibt zurück:
  • (string) The current WordPress version.
Definiert in:
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.


Quellcode

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

	return $wp_version;
}