5Hooks
UNDERSTANDING HOOKS
In WordPress, hooks are the primary feature of the Plugin API. They enable plugin developers to “hook” into the WordPress flow and alter how it works without modifying the core code. By not altering core WordPress, users can upgrade to newer versions without losing any modifications that their plugins have done.
Plugins would have no way to modify how WordPress works without hooks. In many ways, hooks represent what plugins are. The lessons you learn ...
Get Professional WordPress Plugin Development, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.