Your cart is currently empty!
Category Restrict
—
by
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?
Posted in Groups Restrict Categories
Comments
One response to “Category Restrict”
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.