A WordPress-centric search engine for devs and theme authors



wp_sitemaps_enabled ›

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_sitemaps_enabled', $is_enabled )
Parameters:
  • (bool) $is_enabled Whether XML Sitemaps are enabled or not. Defaults to true for public sites.
    Required: Yes
Defined at:
Codex:

Filters whether XML Sitemaps are enabled or not.

When XML Sitemaps are disabled via this filter, rewrite rules are still in place to ensure a 404 is returned.





Source

return (bool) apply_filters( 'wp_sitemaps_enabled', $is_enabled );