apply_filters( 'wp_sitemaps_enabled', bool $is_enabled )

Filters whether XML Sitemaps are enabled or not.


Description

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

See also


Parameters

$is_enabled

Whether XML Sitemaps are enabled or not.<br> Defaults to true for public sites.


Source

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

View on GitHub


Changelog

Changelog
Version Description
5.5.0 Introduced.