<?php function limit_access_to_url(https://besparta.com/product/sparta-3d-experience/?zconfiguration=new&add-to-cart=356&_wp_http_referer=https://besparta.com/shop/) { if (!is_user_logged_in() && is_page('sparta-3d-experience')) { auth_redirect(https://besparta.com/my-account/); } } add_action('template_redirect', 'limit_access_to_url'); ?>