Title: Theme update hook?
Last modified: August 20, 2016

---

# Theme update hook?

 *  [Srini G](https://wordpress.org/support/users/srinig/)
 * (@srinig)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/theme-update-hook/)
 * Is there a hook I can use to update theme options just after the user updates
   the theme from an older version to newer version?
 * I am working on an update to my theme… in the older version of the theme each
   option is an option (that is, a separate entry in the ‘wp_options’ database table)
   while the newer version stores every theme option as a single serialized entry
   in the database table.
 * So I want to check for the older theme options and store those in the serialized
   format just after the theme gets updated to the new version.
 * Is there a hook I can use to achieve this? If not what’s the best and tidy way
   of doing this?

The topic ‘Theme update hook?’ is closed to new replies.

## Tags

 * [action](https://wordpress.org/support/topic-tag/action/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [theme update](https://wordpress.org/support/topic-tag/theme-update/)

 * 0 replies
 * 1 participant
 * Last reply from: [Srini G](https://wordpress.org/support/users/srinig/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/theme-update-hook/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
