Make WordPress Core

Opened 8 years ago

Closed 4 years ago

#37105 closed feature request (wontfix)

rest api hooks before and after request

Reported by: dudijetweb's profile 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 8 years ago.

Download all attachments as: .zip

Change History (5)

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

  • Keywords reporter-feedback added
  • Version trunk deleted

#3 @rachelbaker
8 years ago

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

#4 @TimothyBlynJacobs
4 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Closing. It's been four years without a response. We also have the rest_request_before_callbacks and rest_request_after_callbacks.

Note: See TracTickets for help on using tickets.