To obtain a list of executable action and filters?

Hi all.

A question: is it Possible in wordpress to retrieve a list of executed hooks at some action?

For example:
Create a normal entry in the admin area and get a list:
1. the init - action
n. publish_post action

Or for example we make an order in your woocommerce store and also you will get a list of all hooks of this action.
June 10th 19 at 15:05
3 answers
June 10th 19 at 15:07
Discover the fascinating world of the plugin Query Monitor.
Thanks, nice plugin.
But as I understand it shows what is happening at the time of a page formation.
It does not show what happens in the POST processing so to speak.
publish_post it doesn't show.
And that's exactly how it should be)

And so the plugin is good, thank you! - karlie_Baumbach71 commented on June 10th 19 at 15:10
June 10th 19 at 15:09
wpp_dev_list_of_the_hook function($hook_name) {
 global $wp_filter;
 echo '<pre>';
 var_dump( $wp_filter[ $hook_name ] );
 echo '</pre>';
June 10th 19 at 15:11
Make yourself one of the best possible gifts for the New Year - select 1 day to install and configure Xdebug, learn to work with it in your IDE (PhpStorm highly recommend), and use all the features of this debugger. This will dramatically change how you programite.


Find more questions by tags WooCommerceWordPress