WordPress Hooks are the functions that can be applied to an Action or a Filter in WordPress.
Two types of hooks exist in WordPress. That are
- Action
- Filter
Action hooks allow you to add additional code to the WordPress core or theme so that you can achieve some new functionality or customizations.
It can be handled by add_action() and do_action().
Filter hooks allow you to control how something happens or change something that’s already being output.
It can be handled by add_filter and apply_filter().