[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
Fri Oct 19 10:31:11 UTC 2018


#42061: Add new utility function for checking if the current request is a REST API
request.
------------------------------------+-----------------------
 Reporter:  lots.0.logs             |       Owner:  flixos90
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  5.1
Component:  Bootstrap/Load          |     Version:  4.9
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  rest-api
------------------------------------+-----------------------

Comment (by swissspidy):

 Worth noting that #44534 introduced `wp_is_json_request()`

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


More information about the wp-trac mailing list