Hi @philsbury, email sent
alternatively is there a way to check the current session Age Gate restricted status in PHP?
I could do something like –
add_action( 'template_redirect', function() {
if ( is_page( 'checkout' ) ) {
$age_gate_token = ??;//check if there's a valid token already
if ( ! $age_gate_token ) {
$age_gate_url = 'url'; //page with Age Gate restriction required.
wp_safe_redirect( $checkout_url );
die();
}
}
} );