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