Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_sitemaps_enabled

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
96            * in place to ensure a 404 is returned.
97            *
98            * @see WP_Sitemaps::register_rewrites()
99            *
100            * @since 5.5.0
101            *
102            * @param bool $is_enabled Whether XML Sitemaps are enabled or not.
103            *                         Defaults to true for public sites.
104            */
105           return (bool) apply_filters( 'wp_sitemaps_enabled', $is_enabled );
106      }
107
108      /**
109       * Registers and sets up the functionality for all supported sitemaps.
110       *
111       * @since 5.5.0
112       */
113      public function register_sitemaps() {
114           $providers = array(