[wp-trac] [WordPress Trac] #38964: Add filter to allow modifying response *after* embedded data is adde

WordPress Trac noreply at wordpress.org
Mon Nov 28 20:42:10 UTC 2016


#38964: Add filter to allow modifying response *after* embedded data is adde
-------------------------+------------------------------
 Reporter:  loboyle      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by loboyle):

 Yes, yours requires less duplicated code because for your use case you can
 avoid sending the response yourself and leave WP to do that (and the
 actual embedding).  I need to copy the logic for sending the request
 (embed, json encode, check for encoding errors, check for jsonp callback,
 output) which is a bit more involved - still not massive, but definitely
 more fragile than having a final filter to allow modifying the result.

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


More information about the wp-trac mailing list