Support » Themes and Templates » 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.