WordPress stores its current version in the wp_version global variable. It is set in [wordpress root folder]/wp-includes/version.php. The global variable is a concatenated string, e.g., ‘2.0.0’.

WordPress provides the functions get_bloginfo($show = ”) and bloginfo($show = ”), defined in [wordpress root folder]/wp-includes/template-functions-general.php, as a template tags to retrieve or display the current version. Plugin and theme developers can use these tags to check or inform the users of any features specific to a WordPress version.

Back to full list of global variables.

Technorati tags: , , ,

Discussion [Participate or Link]

  1. Abhijit Nadgouda @ iface » Blog Archive » Wordpress Global Variables said:

    […] $wp_version […]

  2. Simple Plugin ????????????????.?????? « ?????????? said:

    […] $wp_version […]

  3. references» Blog Archive » Wordpress Global Variables said:

    […] $wp_version […]

  4. ?????????? » Blog Archive » Simple Plugin ????????????????.?????? said:

    […] $wp_version […]

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.



Abhijit Nadgouda
iface Consulting
+91 9819820312
My bookmarks


This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.