1 Answer
1

The author rewrite rules are filtered through author_rewrite_rules. You can add a rule there for the pattern author/([^/]+)/edit/?$, but the substitution will depend on how you want to create the edit page. A simple example that will set a custom query variable and load a specific template if this variable is set:

Small tip: Don't call flush_rules() on every init, it's an expensive operation. You only need to do it when the rewrite rules change. You can manually flush the rules by just visiting the Permalinks settings page. And if you are going to play with the rewrite rules, I recommend you install my Rewrite analyzer plugin.

Basically I'm going to create the page by reading the slug (that is - I'm NOT going to create a extra page and call a template file). The page itself is for subscribers to update their personal info and only they have access to it.
–
EddyRMay 28 '11 at 10:18

@EddyR: I updated my answer with some code that will load a specific template file, but you can of course do whatever you want when you detect the extra query variable.
–
Jan FabryMay 28 '11 at 10:36

hmmm, that seems to almost be working. I'm having a problem with get_query_var() it doesn't return anything. Do you know what would be causing that?
–
EddyRMay 28 '11 at 12:34

@EddyR: Do you have a custom query somewhere? query_posts()? That would override the global $wp_query variable, which is where get_query_var() looks.
–
Jan FabryMay 28 '11 at 13:47

Ahhh, perfect, thank you very much. I found my mistake this morning - I just forgot to change 'author/([^/]+)/edit/?$' to 'profile/([^/]+)/edit/?$'
–
EddyRMay 29 '11 at 4:06