• Resolved mohamadalshami

    (@mohamadalshami)


    hello

    it’s so great to have this plugin, i’m so thankful that you provided such a great plugin.

    i had problem with whitelisting the domain i’m using with domain mapping plugin that provides me the ability to redirect a domain to a specific post/page in my site

    i used the code you provided here within the support topic

    i tried even to add the domain itself to the exclusion

    // whitelist URL
    function my_forcelogin_whitelist( $whitelist ) {
    $whitelist[] = home_url( '/shop/' );
    $whitelist[] = home_url( '/support/' );
    $whitelist[] = home_url( '/zaggelapp/' );
    $whitelist[] = home_url( 'https://zaggelapp.com' );
    $whitelist[] = home_url( 'https://zaggelapp.com/zaggelapp' );
    return $whitelist;
    }
    add_filter( 'v_forcelogin_whitelist', 'my_forcelogin_whitelist' );

    so what to do in this case since when i want to show this page without it being hidden at all

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    The v_forcelogin_whitelist filter has been deprecated in Force Login v5.5. I recommend you use the v_forcelogin_bypass filter instead.

    Check out the FAQs section for ways to bypass Force Login based on any condition.

    Also, you can’t pass a HTTP scheme and domain name to the home_url() function, only a relative path. You don’t need that function to list an absolute URL, that only helps ensure the absolute URL uses the same domain and scheme that was configured in WordPress for the relative page you want to allow public access to. For example:

    home_url( '/shop/' ); will output: https://example.com/shop/.

    Whereas your use with another domain name:

    home_url( 'https://zaggelapp.com' ); will output: https://example.com/https://zaggelapp.com.

    I recommend you hire a web developer to help you customize this for your site.

    Good luck!

    Thread Starter mohamadalshami

    (@mohamadalshami)

    yes my developer told me to contact you so he can check if there is a way to bypass the plugin for domain mapping

    I tried the method you mentioned but still shows this URL

    https://www.elzaad.com/account/?redirect_to=https%3A%2F%2Fzaggelapp.com%2Fzaggelapp%2F&bp-auth=1&action=bpnoaccess

    Plugin Author Kevin Vess

    (@kevinvess)

    The v_forcelogin_bypass filter is the only way to hook into Force Login to bypass whether or not it runs. You simply return a true value to disable Force Login for any condition.

    How your custom logic is developed to determine if Force Login should be bypassed is entirely up to you and your developer.

    Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘whitelist URI that is used with domain mapping plugin’ is closed to new replies.