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

    (@kevinvess)

    Hi –?thanks for using Force Login!

    I think you should try using the v_forcelogin_bypass filter with WooCommerce Conditional Tags instead. 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( 'order-pay' ) ) {
          $bypass = true;
        }
      }
      return $bypass;
    }
    add_filter('v_forcelogin_bypass', 'my_forcelogin_bypass', 10, 1);
    Thread Starter jefferson99

    (@jefferson99)

    WOW! Great. That worked like Magic.

    Huge Thanks to you Kevin.

    Much appreciated

    Plugin Author Kevin Vess

    (@kevinvess)

    Great! I’m glad you were able to get this resolved.

    Be sure to rate and review my plugin to let others know how you like it.

    Thanks for using Force Login!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce Dynamic Endpoiint URL’ is closed to new replies.