Talk
OOP Plugin Development Basics
Writing object-oriented plugins against WordPress means fighting a procedural API at every hook. Works through a real-world plugin to show how to structure the code and where to hook into the WordPress lifecycle — so you keep the benefits of OOP PHP instead of bolting classes onto procedural patterns.
Building WordPress plugins in an object-oriented way presents some particular challenges, due to the fact that the WordPress APIs you’re coding against are mostly procedural in nature.
In this session, we’ll go over a real-world plugin to see how the code should be structured, and how best to hook into the WordPress lifecycle when you want to take full advantage of the benefits of OOP PHP.