Make WordPress Core

Opened 4 years ago

Last modified 12 months ago

#37105 new feature request

rest api hooks before and after request

Reported by: dudijetweb Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: REST API Keywords: reporter-feedback
Focuses: Cc:


i have added hooks before and after the rest api request in oreder to measure time of the request.

Attachments (1)

rest-api.php.diff (751 bytes) - added by dudijetweb 4 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ChopinBach
4 years ago

Hi @dudijetweb, thanks for using the WP REST API and making this ticket!

Would the filters rest_pre_dispatch and rest_post_dispatch work for your use case. They are already in the WP_REST_Server class.

#2 @rachelbaker
4 years ago

  • Keywords reporter-feedback added
  • Version trunk deleted

#3 @rachelbaker
3 years ago

@dudijetweb Can you give some more details around your use-case?

Note: See TracTickets for help on using tickets.