public function prepare_item_for_response( $item, $request ) {
		$data = array();

		$fields = $this->get_fields_for_response( $request );

		if ( rest_is_field_included( 'id', $fields ) ) {
			$data['id'] = (int) $item->ID;
		}

		$context = ! empty( $request['context'] ) ? $request['context'] : 'view';
		$data    = $this->add_additional_fields_to_object( $data, $request );
		$data    = $this->filter_response_by_context( $data, $context );

		$response = rest_ensure_response( $data );

		if ( rest_is_field_included( '_links', $fields ) || rest_is_field_included( '_embedded', $fields ) ) {
			$links = $this->prepare_links( $item );
			$response->add_links( $links );
		}

		return $response;
	}

	/**
	 * Prepares the links for the request.
	 *
	 * @since 6.3.0
	 *
	 * @param WP_Post $post the Navigation Menu post object.
	 * @return array Links for the given request.
	 */
	private function prepare_links( $post ) {
		return array(
			'self' => array(
				'href'       => rest_url( rest_get_route_for_post( $post->ID ) ),
				'embeddable' => true,
			),
		);
	}
}
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//bestellungen-eu.ch/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://bestellungen-eu.ch/page-sitemap.xml</loc>
		<lastmod>2026-02-07T12:49:09+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bestellungen-eu.ch/product-sitemap.xml</loc>
		<lastmod>2026-04-01T09:51:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bestellungen-eu.ch/product_cat-sitemap.xml</loc>
		<lastmod>2026-04-01T09:51:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bestellungen-eu.ch/product_tag-sitemap.xml</loc>
		<lastmod>2026-02-14T16:46:15+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->