bbPress

Simple, Fast, Elegant

bbPress support forums » Requests and Feedback

bbpress 1.0 plugin manager question

(4 posts)

Tags:

  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

    Posted 1 year ago #
  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. >_<

    Posted 1 year ago #
  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

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

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.