#7032 closed defect (bug) (fixed)
new action: bp_rest_api_init
Reported by: | DJPaul | Owned by: | djpaul |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
I want to add a new action bp_rest_api_init
hooked to WP's rest_api_init
so REST API endpoint implementations requiring can hook themselves to this and avoid making some other check to see if BuddyPress exists. Much like we do for many other common actions.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Fine to introduce it, especially for use by plugins. I think we should be cautious when deciding to use it internally (we don't need to check whether BP exists - we are BP).