Created
June 20, 2016 15:08
-
-
Save SErr0r/2f4b73ac1213729f228ab21987df308d to your computer and use it in GitHub Desktop.
Get theme version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Get version of the current theme | |
//* @static | |
//* @return string | |
//* @access public | |
public static function getThemeVersion() { | |
$theme_data = wp_get_theme(); | |
return $theme_data->Version; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment