action
In WordPress; an action is a PHP function that is executed at specific points throughout the WordPress Core. Developers can create a custom action using the action API to add or remove code from an existing action by specifying any existing hook. This process is called "hooking".
For example: A developer may want to add code to the footer of a theme. This could be accomplished by writing new function, then hooking it to the wp_footer action.
Custom actions differ from custom filters because custom actions allow you to add or remove code from existing actions. Whereas custom filters allow you to replace specific data (such as a variable) found within an existing action.
0
Other terms in this blossary
Creator
- Laney
- 100% positive feedback