lib/wp_api_client/relationship.rb
def load_relation(relationship, position = nil)
      if objects = @resource.dig("_embedded", relationship)
        location = position ? objects[position] : objects
        begin
          WpApiClient::Collection.new(location)
        rescue WpApiClient::ErrorResponse
          load_from_links(relationship, position)
        end
      else
        load_from_links(relationship, position)
      end
    end
def load_relation(relationship, position = nil)
      if objects = @resource.dig("_embedded", relationship)
        location = position ? objects[position] : objects
        begin
          WpApiClient::Collection.new(location)
        rescue WpApiClient::ErrorResponse
          load_from_links(relationship, position)
        end
      else
        load_from_links(relationship, position)
      end
    end
try to load an embedded object; call out to the API if not