WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 19 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:

Description

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 2 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ChopinBach
2 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
2 years ago

  • Keywords reporter-feedback added
  • Version trunk deleted

#3 @rachelbaker
19 months ago

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

Note: See TracTickets for help on using tickets.