Title: Multisite Subsite Exceptions
Last modified: June 5, 2019

---

# Multisite Subsite Exceptions

 *  Resolved [celebrantplanner](https://wordpress.org/support/users/celebrantplanner/)
 * (@celebrantplanner)
 * [7 years ago](https://wordpress.org/support/topic/multisite-subsite-exceptions/)
 * Hi – Great plug in, thank you.
 * Ive added the following code in my functions.php file to whitelist certain pages
   on my subsites which need to be made available to public. Each subsite is a different
   user account and are setup as {subsite}.celebrantplanner.com.au.
 * The pages are all named the same in each subsite, but the code below isnt allowing
   anyone to access the ‘[https://testuser.celebrantplanner.com.au/booking-form&#8217](https://testuser.celebrantplanner.com.au/booking-form&#8217);
   page without logging in.
 * What am I doing wrong or is there a better way to whitelist the pages below for
   each subsite?
 * Thanking you in advance.
 * CODE
 * function my_forcelogin_bypass( $bypass ) {
 *  if ( is_page(‘booking-form’) || is_page(‘NOIM’) || is_page(‘check-availability’)
   || is_page(‘home-user’) || is_page(‘gallery-user’)|| is_page(‘wording’) ) {
    
   $bypass = true; } return $bypass; } add_filter( ‘v_forcelogin_bypass’, ‘my_forcelogin_bypass’);
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultisite-subsite-exceptions%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [celebrantplanner](https://wordpress.org/support/users/celebrantplanner/)
 * (@celebrantplanner)
 * [7 years ago](https://wordpress.org/support/topic/multisite-subsite-exceptions/#post-11606415)
 * I’ll take that back, it is working! I changed my permalinks so that was the issue,
   not this plugin 🙂
 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [7 years ago](https://wordpress.org/support/topic/multisite-subsite-exceptions/#post-11607886)
 * Hi– thanks for using Force Login!
 * I’m glad you were able to resolve the issue. 🙂
 * Also, you could simplify your conditional statement to the following:
 *     ```
       if ( is_page( array( 'booking-form', 'NOIM', 'check-availability', 'home-user', 'gallery-user', 'wording' ) ) ) {
           $bypass = true;
       }
       ```
   
 * The [is_page()](https://developer.wordpress.org/reference/functions/is_page/)
   function accepts a Page ID, title, slug, or array of such.
 * Be sure to [rate and review](https://wordpress.org/support/plugin/wp-force-login/reviews/?rate=5#new-post)
   my plugin to let others know how you like it.
 * Thanks!
    -  This reply was modified 7 years ago by [Kevin Vess](https://wordpress.org/support/users/kevinvess/).

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

The topic ‘Multisite Subsite Exceptions’ is closed to new replies.

 * ![](https://ps.w.org/wp-force-login/assets/icon.svg?rev=1904031)
 * [Force Login](https://wordpress.org/plugins/wp-force-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-force-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-force-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-force-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-force-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-force-login/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/multisite-subsite-exceptions/#post-11607886)
 * Status: resolved