The MU forums have moved to WordPress.org

Get ID of Blog when Plugin is Activated or Deactivated (3 posts)

  1. DailyTestimony
    Member
    Posted 15 years ago #

    I am writing a plugin for my plugins directory and I am using register_activation_hook(); and register_deactivation_hook(); and within the functions written for each one of these I need to obtain the ID of the blog for which the plugin is being activated or deactivated. I figured some veteran coder here would know how to do that.

  2. MrBrian
    Member
    Posted 15 years ago #

    global $blog_id;

  3. DailyTestimony
    Member
    Posted 15 years ago #

    figures it would be something incredibly simple...

About this Topic

  • Started 15 years ago by DailyTestimony
  • Latest reply from DailyTestimony