Plugin Author
Phil
(@philsbury)
Hi @cope916,
Sorry you’re having issues, I’ve not seen this before.
A couple of questions to help me tray and work this one out;
Do you have any caching enabled?
How are you handling user log ins?
Is it for every user type?
Is it on every page/post type?
The standard and JS versions handle this in different ways too. The JS relies on a ‘logged-in’ class on the body, whereas standard should use the is_user_logged_in() function (though I’m actually struggling to find it in the code despite it working for me!)
Let me know on the above and I’ll try and figure things out. If you have a link too that’d be great as I can have a look and see if I can reproduce it.
There’s an update coming this week, but I don’t think I’ll be able to do any fixes for this in time for that, but it’ll be in the next one if I can find the issue.
Thanks
Phil
Plugin Author
Phil
(@philsbury)
Hi again,
I’ve worked this out, seems it was totally missing for some reason. It’ll be in the next release for a fixe (hopefully tomorrow).
Until then you could add this to your functions.php or a plugin to get the functionality working:
add_filter('age_gate_restricted', 'ignore_logged_in');
function ignore_logged_in($restricted){
if (is_user_logged_in()) {
$restricted = false;
}
return $restricted;
}
As I say, hopefully have the release out tomorrow.
Thanks
Phil
Seems to be working like a champ again! Thank you! Do you have a link or something so I can donate towards a beer or two?
Plugin Author
Phil
(@philsbury)
Great stuff. Official fix should be out later today.
There’s a donate link on the plugins screen, or you can follow this link. Anything greatly appreciated 🙂
Thanks
Phil