[wp-trac] [WordPress Trac] #45875: Rest API: Have a method to check if a REST request is being done

WordPress Trac noreply at wordpress.org
Wed Jan 9 13:42:36 UTC 2019


#45875: Rest API: Have a method to check if a REST request is being done
-------------------------+--------------------------------------
 Reporter:  andizer      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch has-unit-tests
  Focuses:               |
-------------------------+--------------------------------------
 We have functions for checking the type of several requests, e.g.
 `wp_doing_ajax` and `wp_doing_cron`.

 The only one I am missing is a functions for checking if a REST request is
 being executed.

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


More information about the wp-trac mailing list