The MU forums have moved to WordPress.org

delete_blog_option() (5 posts)

  1. sycophant
    Member
    Posted 17 years ago #

    Basically what the topic says. It's not in the current wpmu-functions.php and I think it should be. And it should be:

    function delete_blog_option($id, $key) {
    switch_to_blog($id);
    delete_option($key);
    restore_current_blog();
    refresh_blog_details($id);
    }

    I think.

    Not sure if there is a better way to bring this up, but this will do for now.

  2. andrea_r
    Moderator
    Posted 17 years ago #

    *scratches head* Is this to delete a blog or to improve on the delete blog option that's already there?

  3. lunabyte
    Member
    Posted 17 years ago #

    Yeah, I don't get it either. It's already a plugin in the mu-plugins directory.

  4. andrea_r
    Moderator
    Posted 17 years ago #

    And an included plugin at that. Was added quite a while back.

  5. sycophant
    Member
    Posted 17 years ago #

    No, for removing blog-level options from the database, to go along with the add_blog_option(), get_blog_option() and update_blog_option() calls.

    Currently there is no centralised way to remove the options from the database.

About this Topic

  • Started 17 years ago by sycophant
  • Latest reply from sycophant