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

    (@kevinvess)

    Hi– thanks for using Force Login!

    Don’t replace the $url variable set in the my_forcelogin_redirect() function like that.

    Only change the return line inside the function to point to your desired URL. For example:

    /**
     * Set the URL to redirect to on login.
     *
     * @param string $url The visited URL.
     * @return string The URL to redirect to on login. Must be absolute.
     */
    function my_forcelogin_redirect( $url ) {
      return home_url( '/virtual-training/student/' );
    }
    add_filter( 'v_forcelogin_redirect', 'my_forcelogin_redirect' );
    Thread Starter amhack159

    (@amhack159)

    Thanks for the reply Kevin,

    Ah so this plugin does not allow to force login at specific page, but flexible to redirect after logging in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Still struggling with FAQ (1)’ is closed to new replies.