wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_get_wp_version › WordPress Function

Od6.7.0
Przestarzałyn/a
› wp_get_wp_version ( Brak parametrów )
Powrót:
  • (string) The current WordPress version.
Zdefiniowane na:
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.


Źródło

function wp_get_wp_version() {
	static $wp_version;

	if ( ! isset( $wp_version ) ) {
		require ABSPATH . WPINC . '/version.php';
	}

	/** @var non-falsy-string $wp_version */
	return $wp_version;
}