Select the Count action hooks and filters check box when you want to discover all the action hooks and filters that are invoked.
When tracing is active then at shutdown a number of trace records are written summarising the action hooks and filters that have been invoked.
Information traced
Hook shortcode parameters
The hook shortcode takes 5 positional parameters:
- Hook name(s)
- Hook type: action or filter
- Number of args passed
- Number of invocations
- Attached hook function count
To find which functions are attached use Trace attached hooks functions.
Example wp_actions
The wp_actions array may include some actions invoked before action counting was initiated.
See Must-Use and Drop-In logic.
Example bw_action_counts
Example most used
The most used list only shows the hooks that are implemented. In this example we don’t see gettext. The filter is applied many times but there aren’t any attached filter functions.
