Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#42061 new enhancement

Add new utility function for checking if the current request is a REST API request.

Reported by: lots.0.logs Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9
Component: Bootstrap/Load Keywords: has-patch
Focuses: rest-api Cc:


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.

Attachments (1)

42061-add-wp-doing-rest-filterable-function.patch (1.7 KB) - added by lots.0.logs 7 weeks ago.

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.