wp_sitemaps_stylesheet_index_content
云策文档标注
概述
wp_sitemaps_stylesheet_index_content 是一个 WordPress 过滤器,用于修改站点地图索引样式表的内容。它允许开发者自定义 XML 样式表的输出。
关键要点
- 这是一个过滤器,用于过滤站点地图索引样式表的内容。
- 参数 $xsl_content 是一个字符串,表示 XML 样式表的完整内容。
- 在 WP_Sitemaps_Stylesheet::get_sitemap_index_stylesheet() 方法中使用,返回转义后的 XSL。
- 从 WordPress 5.5.0 版本开始引入。
原文内容
Filters the content of the sitemap index stylesheet.
Parameters
$xsl_contentstring-
Full content for the XML stylesheet.
Source
return apply_filters( 'wp_sitemaps_stylesheet_index_content', $xsl_content );
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |