Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbpress 1.0 plugin manager question

  • Hi,

    Is it possible at all to update a db table when de-activating a plugin?

    Some plugins create an own db table and it would be great if this table is deleted when a plugin is deativated. Keeps the db clean :D

    Greetz

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not as far as I know. It depends if there is a plugin_deactivate hook and if bb keeps data on plugins (and their tables), which I both doubt.

    For WP I think I saw a plugin which had a clean up tables button or something, so you could clean up before deactivating. Come to think of it … I never did clean up before deactivating. >_<

    Perhaps this plugin_deactivate hook is a nice idea to add?

    Then something in the plugin:

    on deactivation -> drop table x OR drop row x

    made a trac for this


    fel64
    Member

    @fel64

    Hey, that sounds like a great idea. The ability for plugins to automatically clean up after themselves … fantastic!

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

You must be logged in to reply to this topic.