Opened 4 months ago
Last modified 2 months ago
#9200 assigned task
BuddyPress core actions and filters as JSON
Reported by: | espellcaste | Owned by: | espellcaste |
---|---|---|---|
Milestone: | Up Next | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | needs-patch |
Cc: | emaralive |
Description (last modified by )
The need to have this data came initially by me trying to create a vscode extension that used BuddyPress data (have autocomplete support for everything BP related).
And I was inspired by this project https://github.com/wp-hooks/wordpress-core-hooks
But similarly to #9199, I learned afterwards that BuddyPress' hooks and actions have a lot of incorrect information. And several hooks were not properly generated due to the way they were added/created.
I tried this at first here and here.
This ticket was created as a reminder, and for visibility. The task of exporting the actions and filters as JSON is pretty straightforward, so currently the only impediment is the correctness of the signatures of those actions and filters.
A git repo, https://github.com/buddypress/bp-hooks, was created two years ago to hold this data. We should also make this available to packagist.org, when ready.
Bumping this since it is blocked untill all WPCS and Docblock issues are resolved.