DEV Community

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

tylerlwsmith profile image
Tyler Smith Author

Nope, you definitely don't need to use an object-oriented programming approach for WordPress, though there are a few exceptions like the WP_Query object. I use this approach because it solved a pain point I was having with the functions file, but I only reach for OOP when it solves a problem that I'm having.