I'm working on a custom plugin where the user/customer will be purchasing a ticket (it'll be a woo product) to take a quiz and win some prize...
So suppose the URL of a product/quiz would be like mydomain.tld/product/play-and-win-samsung-galaxy-s22
When the user purchases a ticket to participate in the quiz, I want to redirect them to a page like mydomain.tld/product/play-and-win-samsung-galaxy-s22/play
where they will actually take the quiz. Needless to say that in that page the necessary checks will be taking place (like whether the user is logged in and has purchased a ticket)...
So how can I create such a dynamic page (not a PT Page), that's dynamic? By dynamic I mean, it'll be 100% programmatically created. No shortcodes attached to a PT Page, nothing. Just pure code... How do we start such a task? Thank you for any suggestions.