phpdoc-parser icon indicating copy to clipboard operation
phpdoc-parser copied to clipboard

Parse which functions are hooked to which hooks

Open JDGrimes opened this issue 11 years ago • 5 comments

I don't think there are any tickets open for this, but I believe it may have been mentioned somewhere. We should parse add_action() and add_filter() calls and export of list of which functions are hooked to which actions/filters.

JDGrimes avatar Mar 26 '14 15:03 JDGrimes

If you don't already have a design for this then you may want to look at the solution that I developed for my own code.

If you've got time start here... http://rowlandscastlewebdesign.com/phphants/ OR dive straight in. You can navigate the code starting from http://rowlandscastlewebdesign.com/phphants/oik-plugins/oik-shortcode-and-api-server/

Note: My solution requires two passes in order for the call trees to be populated. I'm in the process of writing some more about it. First draft at http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/premium-oik-plugins/oik-shortcode-and-api-server/building-plugins-api-reference-using-oik-shortcodes-oik-batch/

bobbingwide avatar Apr 09 '14 12:04 bobbingwide

Just to let you know that I have updated my solution to work with PHP classes and methods and am currently in the process of comparing my results with that of WP-Parser.

bobbingwide avatar May 16 '14 08:05 bobbingwide

@bobbingwide thank you for looking into it! Hadn't checked out your solution yet, but I think we are mostly done with bugs/blockers in Parser and will be moving on to enhancements stuff next.

Rarst avatar May 16 '14 09:05 Rarst

I keep on having to manually search the WP codebase as there are a few places where the content is modified. It would be really nice to have a list of "Modified by" functions. The main list of modifications could be found in https://github.com/WordPress/WordPress/blob/master/wp-includes/default-filters.php

grappler avatar Jan 06 '17 15:01 grappler

This would be amazing.

For example; https://developer.wordpress.org/reference/hooks/authenticate/ lists the default hooked functions, but it's not linked in any way in the data (ie. uses).

dd32 avatar Jul 01 '24 04:07 dd32