do_action are NOT stored in
add_action are stored in
When you call
do_action, core WordPress loops through all of the registered filters or actions (added by
add_action), looking for any matching ones, and then executes the associated function.
The only difference being actions which are stored in the
$wp_actions global var
These are the global vars available for hooks (actions/filters):
global $wp_filter, $wp_actions, $wp_current_filter;
$wp_actions - stores actions that have already been fired with the number of times it was fired, each time
do_action is called this number is incremented.
You can look at the Query Monitor plugin which does handle tracking of hooks (actions/filters):
Now with that said, one option you have that you can do, is to add your own action for the
all action, and then collect and save the filters/actions that are ran yourself.
Here's some sites that talk about this:
Here's example code of doing this: