Closed adamsilverstein closed 5 years ago
do it, for science!
If it is primarily intended for debugging, then it might be worth exploring optimizations to avoid any impact in typical usage, e.g. monkey-patching runHooks
when an all
hook is added.
e.g. monkey-patching runHooks when an all hook is added.
great suggestion, I am also concerned about the performance impact and this might be a way to address that.
To match feature parity with the current PHP hooks system in WordPress core, can we add support for an
all
action?A callback added to the 'all' hook fires on any/every hook - especially useful for debugging.
see: https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/plugin.php#L183-L199 https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/plugin.php#L437-L453