WordPress.org

Ready to get started?Download WordPress

Forums

Theme update hook? (1 post)

  1. SriniG
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic