[wp-trac] [WordPress Trac] #38964: Add filter to allow modifying response *after* embedded data is adde
WordPress Trac
noreply at wordpress.org
Mon Jun 26 11:27:48 UTC 2017
#38964: Add filter to allow modifying response *after* embedded data is adde
-------------------------+-----------------------
Reporter: loboyle | Owner: jnylen0
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.8.1
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------
Comment (by jnylen0):
In [attachment:38964.2.diff], changes per Slack feedback from @pento:
- Rename to `rest_pre_echo_request` - `rest_post_embed` isn't the best
name as this filter will be run even if no embedded requests are inserted
- Fix documentation of `$result` parameter - at this point this is just a
data array, not a `WP_REST_Response` object
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38964#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list