InterviewSolution
| 1. |
What are the difference between action hook and filter in WordPress? |
|
Answer» 1. Actions Hook Actions Hook are TRIGGERED by particular events that take place in WordPress such as changing THEMES, publishing a post, or displaying an administration screen. It is a CUSTOM PHP function defined in your plugin and hooked, i.e., set to respond, to some of these events. Actions offently do one or more of the following things
Here are some Actions Functions listed
Filters Hook are functions that WordPress passes data through, at certain points in execution, just before taking some ACTION with the data. It sits between the database and the browser and between the browser and the database; all most all input and output in WordPress pass through at least one filter hook. The necessary steps to add your filters to WordPress are listed:
Here are some Filters Functions listed
|
|