apply_filters( 'wp_sitemaps_enabled', bool $is_enabled )

Filters whether XML Sitemaps are enabled or not.

Description Description

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

Top ↑

See also See also

Top ↑

Parameters Parameters


(bool) Whether XML Sitemaps are enabled or not. Defaults to true for public sites.

Top ↑

Source Source

File: wp-includes/sitemaps/class-wp-sitemaps.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.