20,656 reputation
248102
bio website monkeyman.be
location Belgium
age 30
visits member for 4 years, 11 months
seen Jul 28 at 13:36

I used to be a PHP developer, but it has been years now since I did some serious work with it. So while my existing answers might be useful, I don't think I can provide insightful updates on them anymore.

In addition to the standard Creative Commons license of this site, I give permission to use all my contributions under the GPL license (version 2). Feel free to re-use it in plugins, themes, or in the Codex.


Sep
11
awarded  Booster
Aug
17
awarded  permalinks
Aug
13
comment How do you create a “virtual” page in WordPress
@Jules: When you include a file, it gets executed in the current scope. In this case, it is the wpse9870_parse_request function, which only has the $wp parameter. It's possible that the global $wp_query object hasn't been set at this time, so get_query_var() will not work. However, you are lucky: $wp is the class that contains the query_vars member that you need - I use it myself in the above code.
Aug
11
awarded  Yearling
Aug
9
comment Force category choice before creating new post?
@Rarst: I think so yes - it's been a while :-)
Jul
31
awarded  Enlightened
Jul
31
awarded  Nice Answer
Jul
25
awarded  Nice Answer
Jul
15
awarded  Nice Answer
Jun
10
awarded  Good Answer
Jun
8
comment Last time a user logged in
@whitelettersandblankspaces: The hook still exists and is not marked as deprecated, so I have no reason to assume this would not work anymore.
Jun
6
awarded  Enlightened
Jun
6
awarded  Nice Answer
Jun
3
awarded  Good Answer
May
17
awarded  Enlightened
May
17
awarded  Nice Answer
May
12
comment How do I customise the new user welcome email
@ZachL: wp_new_user_notification() does both: it first sends the mail to the admin, then to the user.
May
3
awarded  Nice Question
Apr
16
awarded  Good Answer
Apr
11
awarded  Popular Question