Title: Multisite Subsite issue
Last modified: June 14, 2019

---

# Multisite Subsite issue

 *  Resolved [celebrantplanner](https://wordpress.org/support/users/celebrantplanner/)
 * (@celebrantplanner)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/multisite-subsite-issue/)
 * Hi – I have a Gravity Forms iframe embedded in another website, but the frame
   only shows the login page, not the form. I think this is due to Force Login. 
   How do I whitelist forms as they arent attached to a page as such.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultisite-subsite-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/multisite-subsite-issue/#post-11638423)
 * Hi– thanks for using Force Login!
 * You’ll need to whitelist/bypass the url/page the iframe `src=` is referencing.
   Check out the FAQs for details on [how to add exceptions for certain pages](https://wordpress.org/plugins/wp-force-login/#2.%20how%20can%20i%20add%20exceptions%20for%20certain%20pages%20or%20posts%3F).
 *  Thread Starter [celebrantplanner](https://wordpress.org/support/users/celebrantplanner/)
 * (@celebrantplanner)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/multisite-subsite-issue/#post-11640052)
 * Is this right? The URL would be [https://*.celebrantplanner.com.au/gfembed/?f=2](https://*.celebrantplanner.com.au/gfembed/?f=2)
 * where the * would be the subdomain name
 * /**
    * Bypass Force Login to allow for exceptions. * * [@param](https://wordpress.org/support/users/param/)
   bool $bypass Whether to disable Force Login. Default false. * [@return](https://wordpress.org/support/users/return/)
   bool */ function my_forcelogin_bypass( $bypass ) { // Allow URL if query string‘[
   parameter]’ exists if ( isset( $_GET[‘f’] ) ) { $bypass = true; }
 *  // Allow URL where ‘value’ is equal to query string ‘parameter’
    if ( $_GET[‘
   f’] == ‘2’ ) { $bypass = true; }
 *  return $bypass;
    } add_filter( ‘v_forcelogin_bypass’, ‘my_forcelogin_bypass’);
 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/multisite-subsite-issue/#post-11645596)
 * Either one of those conditional statements would work, it just depends on how
   specific you want to be.
 * Do you want to allow URLs with the `?f` query string and any value, or only allow
   URLs with an `?f=2` query string?
 * Or, you could be more specific and only allow the Gravity Form embed page with
   form ID of “2”:
 *     ```
       // Allow Gravity Forms iFrame embed URLs
       if ( function_exists( 'is_gfiframe_template' ) && is_gfiframe_template() ) {
   
           // Allow GF form ID "2"
           if ( $_GET['f'] == '2' ) {
               $bypass = true;
           }
       }
       ```
   

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

The topic ‘Multisite Subsite issue’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/multisite-subsite-issue/#post-11645596)
 * Status: resolved