Forum Replies Created

Viewing 15 replies - 31 through 45 (of 779 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

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

    Thanks for using Force Login!

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    Force Login uses the wp_login_url() function to determine the URL to redirect non-logged-in visitors to. You can use the login_url filter to change what the login URL is to suit your needs.

    Good luck!

    Plugin Author Kevin Vess

    (@kevinvess)

    I wonder if your issue is related to this other recent support topic?

    https://www.ads-software.com/support/topic/remove-noindex-2/

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    Force Login only checks if a user is logged in and redirects visitors to the login screen. It does not alter any of the pages, including whether or not they are indexable.

    Something else (another plugin or your theme) is controlling the index meta tags for your site pages.

    Good luck!

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    Force Login blocks public access to all pages, requiring visitors to login before interacting with any page of the site.

    If you need to allow a service public access, you’ll need to use the?bypass filter?to allow public access. As far as how specifically to allow your Google Analytics integration public access to the site, I’m not sure.

    Please feel free to update this thread with your solution in case it might help other users with a similar problem.

    Thanks and good luck!

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    Checkout the?plugin FAQ?for information on how to add exceptions for certain pages or posts. I recommend you use the WordPress?Conditional Tags to code your conditional statement.

    Good luck!

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    I recommend you use the is_page() function to determine access to pages instead of using the absolute URL method. For example:

    /**
     * Bypass Force Login to allow for exceptions.
     *
     * @param bool $bypass Whether to disable Force Login. Default false.
     * @param string $visited_url The visited URL.
     * @return bool
     */
    function my_forcelogin_bypass( $bypass, $visited_url ) {
    
      // Allow page(s) to be publicly accessible
      if ( is_page('storehouse-registration-page') ) {
        $bypass = true;
      }
    
      return $bypass;
    }
    add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass', 10, 2 );
    Plugin Author Kevin Vess

    (@kevinvess)

    Thank you so much George! I really appreciate it. ????

    Plugin Author Kevin Vess

    (@kevinvess)

    Great! I’m glad it resolved itself.

    It sounds like this might have been a caching issue; some sites use a server-side cache and it can take time for them to clear on their own.

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

    Thanks for using Force Login!

    Plugin Author Kevin Vess

    (@kevinvess)

    Another test you could try, is to use the v_forcelogin_bypass filter to determine access to those pages. Check out the FAQ for an example.

    If Force Login is redirecting visits, that filter should run before the redirect happens, allowing you to stop the redirect.

    If you can’t stop the redirect with the v_forcelogin_bypass filter, that would be a good indicator that the redirect is not caused by Force Login–?but something else.

    Good luck!

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    That is correct, Force Login redirects to the login screen only if the is_user_logged_in() function returns false.

    As to why your site redirects logged-in user visits only on some pages of your site, it could be caused by another plugin or theme code. Try disabling other plugins or switching your theme to figure out what might be causing it.

    Another theory could be your site is not recognizing the visitor as logged in on those pages for some reason?

    Unfortunately, I can’t really troubleshoot this without access to your website.

    I recommend you hire a web developer to help you troubleshoot this for your site.

    Good luck!

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    Since you’re using a custom forgot password URL, you’ll need to use the bypass filter to tell Force Login to allow visits to those pages.

    You can bypass Force Login based on any condition by adding the v_forcelogin_bypass filter to your functions.php file. Check out the plugin FAQ for how to do this.

    You might try using WordPress Conditional Tags to code your conditional statement.

    I recommend you hire a web developer to help you customize this for your site.

    Good luck!

    Thread Starter Kevin Vess

    (@kevinvess)

    My solution to force the $product->get_price() method to show the correct price on a Group product was to edit the linked products in the Group.

    I temporarily removed a linked product and then updated the Group product. Then re-added the linked product and updated the Group product again.

    After changing the linked products, it updated the Group product price in our “add to cart” button text to the correct price.

    Should WooCommerce have a mechanism for auto-updating the Group product price when it’s linked products get updated?

    Thanks!

    Plugin Author Kevin Vess

    (@kevinvess)

    My example code used the page slug 'lost-password' but you can try using the page ID instead; like how I used the custom login page ID 18681 in the array of allowed pages.

    Unfortunately, I can’t really troubleshoot this without access to your website.

    I recommend you hire a web developer to help you customize this for your site.

    Good luck!

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    According to the first support topic you referenced, Wordfence Central uses the WordPress REST API to communicate with the plugin. Force Login set the REST API to require authentication, you’ll need to authenticate or bypass the Wordfence REST API endpoint to allow it to connect.

    Check out this support topic for an example/method to allow public access to the REST API for a specific endpoint:

    https://www.ads-software.com/support/topic/bypassing-only-specific-rest-endpoint/

    Otherwise, you can allow the REST API to be publicly accessible again, by adding one of the following code snippets to your functions.php file:

    add_filter( 'rest_authentication_errors', '__return_true' );
    

    OR

    remove_filter( 'rest_authentication_errors', 'v_forcelogin_rest_access', 99 );
    
Viewing 15 replies - 31 through 45 (of 779 total)