Tag: WordPress hooks
WordPress Hooks, Actions, and Filters: What They Do and How They Work
This article introduces one of the most important topics in WordPress development: WordPress hooks, including action hooks and filter hooks. Hooks are at the core not only of how WordPress plugins work, but nearly all code in the WordPress ecosystem: most WordPress themes use hooks heavily, as does “WordPress core” itself. WordPress hooks are absolutely a must-know topic in WordPress development.
4 Steps to Become a WordPress Plugin Developer
This article will take you by the hand and lead you to become a WordPress plugin developer. We’ll analyze when the circumstances call for writing a plugin, where to place your plugin code and some best practices, and give you a taste of a few WordPress concepts regarding plugin development while coding a simple plugin.
Writing a WordPress Plugin From Scratch: A Step-by-Step Tutorial
This WordPress plugin development tutorial captures the steps I went through on a real project, including the mistakes I made and how I debugged them.
Learn WordPress Development: The Basic Course
WordPress development is a hugely useful skill, but it’s also tricky to learn—especially if you learn things out-of-order and try to tackle advanced topics while remaining confused on the fundamentals.
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?
Preventing Form Resubmission Warnings in WordPress with the Post/Redirect/Get Pattern
Today’s article is on an advanced topic in WordPress development, and is by a distinguished guest and a truly outstanding WordPress developer and educator: Carl Alexander.
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.
Off the Hook: Practical Uses of remove_action() and remove_filter()
Today’s article continues our discussion of WordPress’s Hooks system with a practical look at the direct opposite of add_action() and add_filter(): remove_action() and remove_filter().
How to Use apply_filters() and do_action() to Create Extensible WordPress Plugins
How does a single plugin become the basis of a thriving technology ecosystem? Partly by leveraging the extensibility that WordPress’s event-driven Hooks system makes possible.