[wp-trac] [WordPress Trac] #39696: REST API: Filter which links get embedded when passing the ?_embed query parameter

WordPress Trac noreply at wordpress.org
Fri Jan 27 23:03:44 UTC 2017


#39696: REST API: Filter which links get embedded when passing the ?_embed query
parameter
-------------------------------------------------+-------------------------
 Reporter:  rheinardkorf                         |       Owner:
     Type:  enhancement                          |  adamsilverstein
 Priority:  normal                               |      Status:  assigned
Component:  REST API                             |   Milestone:  Awaiting
 Severity:  normal                               |  Review
 Keywords:  2nd-opinion needs-refresh needs-     |     Version:  4.7.1
  unit-tests                                     |  Resolution:
                                                 |     Focuses:  rest-api
-------------------------------------------------+-------------------------

Comment (by rheinardkorf):

 Thanks for the reply. That all makes perfect sense.

 @jnylen0 , can you give me an example of how a JSON request request is
 done so that I can make sure I capture the following:
 > - JSON `{ _embed: true }`: all embeds
 > - JSON { _embed: 'author,wp:term' }: as expected
 > - JSON { _embed: [ 'author', 'wp:term' ] }: as expected

 Cheers.

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


More information about the wp-trac mailing list