Category Restrict

Hello, I’m using Groups Restrict Categories and the Groups 404 redirect.

I can’t get the page to redirect to login, if they have no access for that category.

It currently just shows no products so I know the access isn’t working, but the redirect if you dont have access doesn’t seem to be working right.

Any idea?

One Response to Category Restrict

  1. antonio May 5, 2017 at 10:14 am #

    Hi David,
    Sorry for the delay, we are having a look at this.
    While, if you add this code in your functions.php file should work:
    add_filter( 'groups_restrict_categories_filter_the_posts', 'my_groups_restrict_categories_filter_the_posts', 10, 1);
    function my_groups_restrict_categories_filter_the_posts ( $res ) {
    return true;
    }

    Kind Regards,
    Antonio B.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share