Title: get the theme version
Last modified: August 20, 2016

---

# get the theme version

 *  [Adam](https://wordpress.org/support/users/cscottrun/)
 * (@cscottrun)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/get-the-theme-version/)
 * So essentially we use to do this:
 *     ```
       function get_current_theme_version(){
           $this->aisis_current_theme_version = get_theme_data(get_theme_root() . '/Aisis/style.css');
           return $this->aisis_current_theme_version['Version'];
       }
       ```
   
 * which if your theme style.css said the version was 1.0 you would get 1.0 back.
   Now because get_theme_data is deprecated and we are to use wp_get_theme_data 
   I thought I could do:
 *     ```
       function get_current_theme_version(){
           $this->aisis_current_theme_version = wp_get_theme(get_theme_root() . '/Aisis/style.css');
           return $this->aisis_current_theme_version['Version'];
       }
       ```
   
 * nope….Doesn’t work. I need to get the theme data and not have wordpress be like“
   thats wrong. your bad. no! don’t do that!” So whats the “new” way to get the 
   theme version?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Adam](https://wordpress.org/support/users/cscottrun/)
 * (@cscottrun)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/get-the-theme-version/#post-2838150)
 * never mind……the way I was doing it is right.
 *  Thread Starter [Adam](https://wordpress.org/support/users/cscottrun/)
 * (@cscottrun)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/get-the-theme-version/#post-2838154)
 * I was wrong yet again, not resolved. how do we get theme data now?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘get the theme version’ is closed to new replies.

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [deprecation](https://wordpress.org/support/topic-tag/deprecation/)
 * [wp_get_theme](https://wordpress.org/support/topic-tag/wp_get_theme/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [Adam](https://wordpress.org/support/users/cscottrun/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/get-the-theme-version/#post-2838154)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
