[wp-trac] [WordPress Trac] #59552: Rest api not returns embedded data, if i use at least one field.

WordPress Trac noreply at wordpress.org
Fri Oct 6 17:12:47 UTC 2023


#59552: Rest api not returns embedded data,if i use at least one field.
-----------------------------+------------------------------
 Reporter:  sashakozlovskiy  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Embeds           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  rest-api
-----------------------------+------------------------------

Comment (by spacedmonkey):

 > Please,explain to me,whether it possible exclude embedded parts,for
 example from links exclude collection,etc.

 @sashakozlovskiy It is possible. You can do this `?_fields=_links.self`.
 But if you are embedding then links are always returned.

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


More information about the wp-trac mailing list