Course: A Complete Introduction to the WordPress Hooks System
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.
Adding Markup to Your WordPress Footer Without Theme Changes, An Action Hook Example
As a complement to our last Quick Guide, this week we’re going to offer an example of what it’s like to use your first action hook in WordPress. In this case, we’ll use the wp_footer action to add some markup to our WordPress footer. As the video details, you’ll probably want to do this for very basic HTML in the theme most times, but this way works with absolutely any theme you might run. Speaking of the video, if watching is your preference:
How To Stop a Post Publishing in WordPress with PHP
Adam Brown’s Hooks List
There’s not really a shortage of ways to find WordPress hooks, filters, functions, and more. It was actually Jeff Chandler’s story about Hookr.io — a new entrant into the field — that reminded me of this one which I remember from years ago. It’s not especially pretty, but it’s a deep resource that makes it easy to jump from a list of hooks to where they sit in the source once you get the hang of it.