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

    (@kevinvess)

    Hi– thanks for using Force Login!

    I suggest you try the v_forcelogin_bypass filter with WooCommerce Conditional Tags.

    Something like this:

    /**
     * Bypass Force Login to allow for exceptions.
     *
     * @return bool Whether to disable Force Login. Default false.
     */
    function my_forcelogin_bypass( $bypass ) {
      if ( class_exists( 'WooCommerce' ) ) {
        if ( is_wc_endpoint_url( 'lost-password' ) ) {
          $bypass = true;
        }
      }
      return $bypass;
    }
    add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass' );
    • This reply was modified 5 years, 11 months ago by Kevin Vess. Reason: Fixed code example
    Thread Starter Andrew Randazzo

    (@theologian88)

    Thanks for the reply. I’ll need a little more help. Where am I suppose to put this code? I tried putting it in my Child theme’s functions.php but that didn’t do anything.

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi Andrew,

    Yes– adding that code to your child theme’s functions.php file should work.

    As for why “that didn’t do anything,” I can’t say without having access to your site to troubleshoot it.

    What version of Force Login, WooCommerce, and WordPress are you using?
    Make sure you’re using the latest versions of all three.

    Is your child theme actually the currently active theme?

    Try playing with the my_forcelogin_bypass() function by changing the conditional statements to see what works.

    You might need to hire a developer to help you troubleshoot this issue.

    Good luck and thanks for using Force Login!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Password Reset with Woocommerce’ is closed to new replies.