#45875 closed enhancement (duplicate)
Rest API: Have a method to check if a REST request is being done
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.1 |
Component: | REST API | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Duplicate of #42061.