wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_sitemaps_enabled › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( 'wp_sitemaps_enabled', $is_enabled )
Parameter:
  • (bool) $is_enabled Whether XML Sitemaps are enabled or not. Defaults to true for public sites.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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