wp_get_wp_version
wp_get_wp_version ( No parameters )
Returns:- (string) The current WordPress version.
Defined at: - Introduced in WordPress: 6.7.0
- Deprecated in WordPress: —
Description
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.