Plugin Author
Phil
(@philsbury)
Hi @juanmarin,
There’s actually no filter if the age gate is already passed. Perhaps they’re should be though. I’ll have look a bit later and come back to you.
Thanks
Phil
Plugin Author
Phil
(@philsbury)
Hi @juanmarin,
I don’t think this works with a filter as in PHP mode it will mean you can never see the homepage.
If you use the JavaScript version though, then you can do this to make it always show one the home page:
add_action('wp_footer', function () {
if (is_front_page()) : ?>
<script>
jQuery(function(){
AgeGate.show();
});
</script>
<?php endif;
}, 100);
Hope that helps
Thanks
Phil