Make WordPress Core

Opened 22 months ago

Last modified 16 months ago

#37105 new feature request

rest api hooks before and after request

Reported by: dudijetweb Owned by:
Milestone: Awaiting Review 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 22 months ago.

Download all attachments as: .zip

Change History (4)

#1 @ChopinBach
22 months 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
21 months ago

  • Keywords reporter-feedback added
  • Version trunk deleted

#3 @rachelbaker
16 months ago

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

Note: See TracTickets for help on using tickets.