Opened 7 years ago
Closed 3 years ago
#37105 closed feature request (wontfix)
rest api hooks before and after request
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
i have added hooks before and after the rest api request in oreder to measure time of the request.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Hi @dudijetweb, thanks for using the WP REST API and making this ticket!
Would the filters
rest_pre_dispatch
andrest_post_dispatch
work for your use case. They are already in theWP_REST_Server
class.