4 ms·
"I've basically built a request router and ~MVC into Wordpress" That sounds really interesting and something I think a lot of devs would be interested in.
by 20years 10y ago
"I've basically built a request router and ~MVC into Wordpress"
That sounds really interesting and something I think a lot of devs would be interested in.
- busterarm 10y agoI 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!)