Tag: object-oriented programming
Where and How to Use WordPress Hooks in Objects
You’ve maybe noted that we’ve recently been writing about WordPress and object-oriented programming in PHP a lot. Just last week, Fred published an article about PHP magic methods, especially __construct, and how they work. This week I want to tackle a very common and oft-debated question about WordPress and OOP: when I use WordPress hooks, where do they go on my objects?
Introduction to Object-Oriented PHP for WordPress Developers
Our goal today is introduce object-oriented programming in PHP, as the basis to discuss OOP in WordPress.
Carl Alexander’s Free Guide to Object-Oriented Programming in WordPress
Carl Alexander is a great technical writer, and he’s doing a great service for the world of WordPress: He teaches the principles of object-oriented programming (OOP).