DEV Community

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

Collapse
vkuberan profile image
Velmurugan Kuberan

Wonderful article. But my question is do we really need OOP for WordPress?

Collapse
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.