I would like to change the logic of the wordpress, so that a page will be accessible only if another page is visited.
1st page: [login to view URL]
2nd page: [login to view URL]
3rd page: [login to view URL]
I would like when a user presses the button start to start a countdown (1 hour) and be redirected to [login to view URL] The only page that he can go by typing the url should be [login to view URL] If the guest types [login to view URL] without visiting page_2 he should get a message "Access denied" and only if he visits page_2 he could get access to page_3. I will then create many pages in this logic, but I would like the logic that will be created to be stored in mysql, so that I could know each player how many pages has visited and in what time. When the hour passes (countdown), the game will be over and he should not be able to visit any pages.