Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse which functions are hooked to which hooks #87

Open
JDGrimes opened this issue Mar 26, 2014 · 5 comments
Open

Parse which functions are hooked to which hooks #87

JDGrimes opened this issue Mar 26, 2014 · 5 comments

Comments

@JDGrimes
Copy link
Contributor

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.

@bobbingwide
Copy link

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
Copy link

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.

@Rarst
Copy link
Contributor

Rarst commented May 16, 2014

@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.

@grappler
Copy link
Member

grappler commented Jan 6, 2017

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

@dd32
Copy link
Member

dd32 commented Jul 1, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants