What’s the best way to check current url for endpoint in a template file? I have a plugin that creates endpoints in author.php… so now i’m trying to check in author.php so that only certain code is executed if the URL ends in a specific endpoint?
example.com/author/username/endpointA
example.com/author/username/endpointB
The idea is that each endpoint has different content.
Thank you!