What Is A Difference Between Action Hook And Filter Hook In WordPress Blog?

Posted by

Hello All,

Action and Filter are both the types of hook which are available for WordPress Blog. There is one similarity between these two is that one can use add_filter() for an action, and for a filter too. However, there are few differences between these two and they are addressed as below:

Actions and Filters have a different code. Filters are just that filter through which information is passed and then used. When all filters have been run then there may be some changes in information. While in actions information may be passed between functions that use the action hook. But no change is made with the information after all the filters have been run and completed the process.

Actions are not all “No Parameters” hooks but it returns any information which may get when using an action hook.

Thanks,

Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.