• Resolved Mahaprabhu

    (@mpcd108)


    Hi. Thanks for this nice plugin.
    In the case when Site home page is different from WordPress installation directory
    there are some issues I am facing.
    When I activate the plugin it works – it shows the default WordPress Login Page.

    But issues are when I want to Whitelist certain pages or to have a Custom login – register etc.

    I think it is because the home_url mentioned in the code in Functions.php is different from Site home page etc.
    I am not great with coding. Please help

    I am using these codes you wrote earlier.

    function my_forcelogin_whitelist( $whitelist ) {
    $whitelist[] = home_url

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Mahaprabhu

    (@mpcd108)

    i hope someone else had a similar situation and has a solution.
    pls do share

    Thread Starter Mahaprabhu

    (@mpcd108)

    Hi. Does anyone have a similar case ? Pls help

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    If your Site address is different from your WordPress address, the home_url() function should work for whitelisting pages accessible from the front end URL.

    However, if you need to whitelist a WordPress admin URL, you’ll need to use the site_url() function in your whitelist code instead of the home_url() function.

    Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site home page is different from WordPress installation directory’ is closed to new replies.