Custom Permalink for Plugin
-
I’ve been going through tutorial upon tutorial on how to give my plugin its own “page”. I haven’t come across a solution that does what I want. I’m getting frustrated because what I assume to work from multiple different examples is not.
What I am trying to accomplish is adding my own entry, preferrably without the need for a page to be created within wordpress, and have the url work like:
- example.com/myplugin
- example.com/myplugin/detail
I have the templates working for each checking the $_SERVER[‘REQUEST_URI’] for “myplugin”, but the part I cant figure out is hooking into wordpresses permalinks to make them work all the time regardless of permalink structure.
On a side note, if I’m even doing this right, when do I fire the “generate_rewrite_rules” action?
- The topic ‘Custom Permalink for Plugin’ is closed to new replies.