How to check current URL for endpoint in a template file?

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

Read More

example.com/author/username/endpointB

The idea is that each endpoint has different content.

Thank you!

Related posts

Leave a Reply

1 comment