WordPress.org

Ready to get started?Download WordPress

Forums

How to implement WordPress plugin update that modifies the database? (1 post)

  1. moroshko
    Member
    Posted 1 year ago #

    I develop a WordPress plugin, which has several database tables of its own. The plugin creates these tables when activated, and removes them when deleted/uninstalled.

    I have to implement an update process of the plugin which updates plugin's code as well as tables structure. The simplest case would be to add a new column to one of the tables. The more complex case would be to create a new tables structure and update the content accordingly.

    How would you recommend to solve this problem? Is there any built-in WordPress functions that may help?

Topic Closed

This topic has been closed to new replies.

About this Topic