You can get the WordPress version using the following code:

$version=bloginfo('version');
echo $version;

Here $version displays the WordPress Version you use. You can get different information about the current site by passing parameters to bloginfo(). Some important parameter’s are listed below

  1. name
  2. description
  3. html_type
  4. url
  5. admin_email
  6. language
  7. stylesheet_directory
  8. template_directory

Have any doubt, then comment here!

Leave a Reply

Your email address will not be published. Required fields are marked *