DEV Community

Discussion on: Simplifying WordPress's functions.php with OOP

Collapse
 
tylerlwsmith profile image
Tyler Smith

That's the worst! To some extent these kinds of mistakes are unavoidable, and probably a good a good argument for test driven development. I've got methods wrapping this functionality in this theme class because I'm using the same hooks over and over, but in most cases this approach is less than practical because of the sheer volume of hooks available.

Building a theme generator like the one you built sounds super cool. That's something I should definitely focus on learning soon.