Support » Plugin: Force Login » Issue with redirect in a custom page

  • Resolved xrisxal2000

    (@xrisxal2000)


    Dear Kevin
    i have a website for example
    http://www.website.com/members/
    and i have a custom login page http://www.website.com/members/sign-in

    I want to use your great plugin, but insead opening in default wordpress admin login page to redirect to http://www.website.com/members/sign-in/

    I try several codes in functions.php from other support tickets in your plugin but probably i do somehing wrong

    Pls tell me in order to do the above what i add to my functions.php?
    i send a code to check if this is right
    ======================================
    `// Custom Registration URL
    function my_registration_page( $register_url ) {
    return site_url( ‘/members-area/sign-in/’, ‘login’ );
    }
    add_filter( ‘register_url’, ‘/members-area/sign-in/’, 10, 1 );`

    is this the right one? i have add my custom url but its not working.
    i would really appreciate your help
    kindest regards,
    Xristos

    • This topic was modified 8 months, 3 weeks ago by xrisxal2000.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with redirect in a custom page’ is closed to new replies.