The best way to understand what a hook does is to look at where it occurs in the source code.
- Action hooks look like this:
do_action( "hook_name" )
- Filter hooks look like this:
apply_filters( "hook_name", "what_to_filter" )
.
Remember, this hook may occur in more than one file. Moreover, the hook’s context may change from version to version. (Source/more: Adam R. Brown)