Plugins are the way to extend WordPress. The reason it is so easy to make WordPress do your bidding has to do with hooks that are littered across the source code.
Want to do something as soon as a post is published? Want to modify the excerpt length? Want to create your own page view stats? Finding the right hook is all you need to do.
But what about doing the same with plugins? Hooks are not just for use in WordPress, they are essentially a design pattern you can implement in your own work.
In this article, I’ll show you how you can create your own hooks to make it easy for you or others to build upon your work.