[wp-trac] [WordPress Trac] #42061: Add new utility function for checking if the current request is a REST API request.

WordPress Trac noreply at wordpress.org
Mon Oct 2 11:21:37 UTC 2017


#42061: Add new utility function for checking if the current request is a REST API
request.
----------------------------+-----------------------------
 Reporter:  lots.0.logs     |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  rest-api        |
----------------------------+-----------------------------
 This patch adds a new function: `wp_doing_rest()` and filter by the same
 name that work exactly like the current `wp_doing_ajax/cron()` functions
 but for Rest API requests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42061>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list