Okay, let’s assume that I want to create a dynamic “printable” page using a system that doesn’t play well with wordpress’s theming engine, is there a way for me to define a “permalink” in my plugin that will call a predefined function, also in my plugin?
If you’re familiar with Drupal it’s similar to how their hook_menu works, but I only need it on a very limited basis, so it doesn’t have to be that robust.
Something along the lines of this would probably do it:
After you’re done adding that code, make sure you flush the rewrite rules by going to Settings -> Permalinks.