New to WP development. I want my plugin to dynamically show content for certain urls, for example, when the user navigates to
/my-plugin/key, my plugin would provide the content. The Events Calendar appears to do this. I don't want the user to have to create pages and add shortcodes. I've been looking through the filters but haven't found anything.
the_content filter isn't quite what I want, as it looks like that only changes the content for already existing posts/pages.
Is there a hook/filter that can do this? Or should it be done some other way?