Forums

Join
bbPress Support ForumsRequests and Feedbackbbpress 1.0 plugin manager question

Info

bbpress 1.0 plugin manager question

  1. 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

  2. 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. >_<

  3. 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

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

  5. You must log in to post.