Title: Multisite: wrong ID
Last modified: August 30, 2016

---

# Multisite: wrong ID

 *  Resolved [TheZorro](https://wordpress.org/support/users/thezorro/)
 * (@thezorro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/)
 * Hey
 * I wanted to use this plugin but in our case it seems not working. The reason 
   seems to be that we have a multisite environment. The plugin attached itself 
   to the main page (id:1), buddypress is however connected to another page (id:
   4).
 * Does anybode know where I have to change the code of the plugin in order to use
   it?
 * Thank you 🙂
 * [https://wordpress.org/plugins/bp-registration-options/](https://wordpress.org/plugins/bp-registration-options/)

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

 *  Thread Starter [TheZorro](https://wordpress.org/support/users/thezorro/)
 * (@thezorro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/#post-6569181)
 * Just wanted to let you know that I followed this guide to install buddypress 
   in another blog:
 * [https://codex.buddypress.org/legacy/getting-started/install-buddypress-on-a-secondary-blog/](https://codex.buddypress.org/legacy/getting-started/install-buddypress-on-a-secondary-blog/)
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/#post-6569184)
 * Yeah, as is, from what I recall, it’s partially hardcoded at the moment to be
   on the main blog.
 * However, I believe this filter is going to help you out a bit. It should allow
   you to specify the blog ID to put the menu items on. In your case, you’d want
   to return 4 to the filter.
 *     ```
       $default_check = absint( 1 );
       $check_blog_id = absint( apply_filters( 'bp_registration_filter_blog_id', $default_check ) );
       ```
   
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/#post-6569185)
 * You can see the whole spot in the bp_registration_options_plugin_menu() function
   at [http://plugins.svn.wordpress.org/bp-registration-options/tags/4.2.7/includes/admin.php](http://plugins.svn.wordpress.org/bp-registration-options/tags/4.2.7/includes/admin.php)
 *  Thread Starter [TheZorro](https://wordpress.org/support/users/thezorro/)
 * (@thezorro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/#post-6569206)
 * Hey!
 * Thank you for you help.
 * I changed the value to 4 either for both lines or for one while not changing 
   the other. While the menu appears now in the admin panel, the blog returns ERR_TOO_MANY_REDIRECTS
   when I activate that only registered and approved users shall see the blog.
 * [EDIT] Hmm, I am not sure if the problem was there before but when I now active
   the plugin without any changes and independent from activing the option if buddypress
   is visible to all visitors, I get the same error as above. Might be the cache/
   cookies of my browser. Still, I thought it might be worth mentioning.
 *  Thread Starter [TheZorro](https://wordpress.org/support/users/thezorro/)
 * (@thezorro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/#post-6569224)
 * Okay, it seems to be plugin in general. As soon as I active it, I get the ERR_TOO_MANY_REDIRECTS
   message.
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/#post-6569239)
 * Hmm. The only time we do any redirects is on the template_redirect hook, and 
   that’s only:
 * 1. If private network is checked.
    2. Non logged-in user trying to access area
   they shouldn’t. 3. Logged-in but moderated user trying to access area they shouldn’t.
 * One caveat I can see in this would be that we don’t check for if_admin() at all
   but I’d also need to check if template_redirect fires at all in the admin too.
 * You can see all the logic for that in `bp_registration_deny_access()` in [http://plugins.svn.wordpress.org/bp-registration-options/tags/4.2.7/includes/core.php](http://plugins.svn.wordpress.org/bp-registration-options/tags/4.2.7/includes/core.php).
 * The question is what/why are so many redirects being triggered.

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

The topic ‘Multisite: wrong ID’ is closed to new replies.

 * ![](https://ps.w.org/bp-registration-options/assets/icon-256x256.png?rev=2882040)
 * [Registration Options for BuddyPress](https://wordpress.org/plugins/bp-registration-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-registration-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-registration-options/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-registration-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-registration-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-registration-options/reviews/)

## Tags

 * [id](https://wordpress.org/support/topic-tag/id/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 6 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-wrong-id/#post-6569239)
 * Status: resolved