3 ms·
I agree. A lot of folks have worked on the latter but I haven't seen much of the former and had to build it myself. In both cases what I did was highly specif
by busterarm 10y ago
I agree. A lot of folks have worked on the latter but I haven't seen much of the former and had to build it myself.
In both cases what I did was highly specific to the spec of the WordPress site. I've yet to come up with something generic enough and well-built enough that I'm comfortable sharing. That's a problem with the WordPress ecosystem in general I think.
The key moment to understanding Wordpress was realizing that its use of hooks and filters are the publish-subscribe pattern. You can just hook the `parse request` action and then do whatever the hell you like as long as you make sure that the `query` (and ultimately `wp` object) that comes out at the end of the process doesn't have something unexpected in it (tricky!)