O'Reilly logo

WordPress Complete by Hasin Hayder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Plug-ins

Writing a plug-in is easier than writing a widget. To avoid confusion, a widget is basically a kind of plug-in that executes with the help of the widget plug-in developed by Automattic. In this section, we will understand how plug-ins function in WordPress and how we can develop one on our own.

Plug-ins are simple PHP functions that are invoked at some specific event. Plug-in developers specify those events and ping the WordPress engine to register their plug-in for running at those events. These events are called hooks. WordPress has many hooks inside it and those are documented in Codex, the main documentation repository. By intercepting those hooks, you can simply do magic with WordPress. If you are not sure what you can do, take a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required