Phil,
in my case work this code after footer in template page
<script type="text/javascript">
function conditionallyAllow(restrict, meta){
return window.location.pathname.match(/shop/);
}
if(typeof ageGateHooks !== 'undefined'){
ageGateHooks.addFilter('age_gate_restricted', 'age-gate', conditionallyAllow);
}
</script>
But it totally ignores plugins settings and triggers every time even for logged administrator
-
This reply was modified 4 years ago by ksahipuk.