WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| 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( |