Custom Rewrite rule to match anything not already matched by WordPress
You can’t do that with a rewrite rule, the regular page rule already matches, but you can intercept the data that’s extracted from that rule before it gets transformed into a query. We do that by hooking the parse_request action, where we can check for a custom slug, and modify the request object directly. I … Read more