
Brotli压缩:GZIP压缩替代方案
apply_filters( 'wp_sitemaps_taxonomies_entry', $sitemap_entry, $term->term_id, $taxonomy, $term )
wp_sitemaps_taxonomies_entry 是 WordPress 5 及以后版本中内置的一个过滤器,它允许开发人员对分类法在 XML 网站地图中的输出进行修改。使用这个过滤器,您可以控制分类法在网站地图中的具体输出,例如:更改分类法的 URL 或更改分类法的标题。
过滤单个术语的网站sitemap条目。
$sitemap_entry = apply_filters( 'wp_sitemaps_taxonomies_entry', $sitemap_entry, $term->term_id, $taxonomy, $term );