Tag: WordPress hooks

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?


Learn WordPress Development: The Basic Course

wordpress development course basics
So You Want to Learn WordPress Development

WordPress development is a massively useful skill, but it’s also tricky to learn—especially if you learn things in a piecemeal way that allows basic confusions to persist while you try to tackle advanced topics.





Course: A Complete Introduction to the WordPress Hooks System

wordpress hook | wordpress action and filter

This course covers one of WordPress’s most crucial and widely used systems: Hooks, including both actions and filters. We introduce Hooks as an event-driven system, present the key concepts and terminology you need to understand this system, and dig deep into how to use hooks in your own code—including hooking in your own functions, removing previously hooked functions, and creating your own action and filter hooks for others to use.