[wp-trac] [WordPress Trac] #37105: rest api hooks before and after request

WordPress Trac noreply at wordpress.org
Wed Jun 15 15:39:52 UTC 2016


#37105: rest api hooks before and after request
-----------------------------+------------------------------
 Reporter:  dudijetweb       |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  REST API         |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by ChopinBach):

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37105#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list