How to Check for the Current Version of WordPress

We can check the current version of wordpress using below:

1.)you can do a simple WordPress version check with conditionals by using

 get_bloginfo('version'); 

2.)The current wp version being used on a site.

 echo $wp_version;

3.)There a meta tag called generator that displays the current WordPress version:

 <meta name="generator" content="WordPress 3.0.1" /> 

4.)Displays the WordPress Version you use. This data is retrieved from the $wp_version variable set.
wp-includes/version.php

Leave a Reply