wp_sitemaps_stylesheet_index_url

过滤钩子


apply_filters( 'wp_sitemaps_stylesheet_index_url', $sitemap_url )
参数
  • (string)
    $sitemap_url
    Full URL for the sitemaps index XSL file.
    Required:
定义位置
  • wp-includes/sitemaps/class-wp-sitemaps-renderer.php
    , line 115
引入
5.5.0
弃用

Filters the URL for the sitemap index stylesheet.

If a falsey value is returned, no stylesheet will be used and
the “raw” XML of the sitemap index will be displayed.

return apply_filters( 'wp_sitemaps_stylesheet_index_url', $sitemap_url );