Browsing hooks for feature: Sitemaps

    jetpack_sitemap_generate

    hook (filter): Filter whether to make the default sitemap discoverable to robots or not. Default true.

    Source: modules/sitemaps/sitemaps.php:443

    jetpack_sitemap_news_sitemap_item

    hook (filter): Filter associative array with data to build node and its descendants for current post in news sitemap.

    Source: modules/sitemaps/sitemap-builder.php:1444

    jetpack_sitemap_news_skip_post

    hook (filter): Filter condition to allow skipping specific posts in news sitemap.

    Source: modules/sitemaps/sitemap-builder.php:1387

    jetpack_sitemap_news_sitemap_count

    hook (filter): Filter limit of entries to include in news sitemap.

    Source: modules/sitemaps/sitemap-builder.php:1068

    jetpack_sitemap_location

    hook (filter): Additional path for sitemap URIs. Default value is empty.<p>This string is any additional path fragment you want included between the home URL and the sitemap filenames. Exactly how this fragment is interpreted depends on your permalink settings. For example:</p> <p>Pretty permalinks:</p> <pre><code>home_url() . jetpack_sitemap_location . '/sitemap.xml'</code></pre> <p>Plain ("ugly") permalinks:</p> <pre><code>home_url() . jetpack_sitemap_location . '/?jetpack-sitemap=sitemap.xml'</code></pre> <p>PATHINFO permalinks:</p> <pre><code>home_url() . '/index.php' . jetpack_sitemap_location . '/sitemap.xml'</code></pre> <p>where 'sitemap.xml' is the name of a specific sitemap file. The value of this filter must be a valid path fragment per RFC 3986; in particular it must either be empty or begin with a '/'. Also take care that any restrictions on sitemap location imposed by the sitemap protocol are satisfied.</p> <p>The result of this filter is stored in an option, 'jetpack_sitemap_location'; that option is what gets read when the sitemap location is needed. This way we don't have to wait for init to finish before building sitemaps.</p>

    Source: modules/sitemaps/sitemaps.php:531

    jetpack_news_sitemap_location

    hook (filter): Filter news sitemap URL relative to home URL.

    Source: modules/sitemaps/sitemaps.php:676

    jetpack_sitemap_news_sitemap_post_types

    hook (filter): Filter post types to be included in news sitemap.

    Source: modules/sitemaps/sitemap-librarian.php:405

    jetpack_print_sitemap

    hook (filter): Filter sitemap before rendering it as XML.

    Source: modules/sitemaps/sitemap-builder.php:703

    jetpack_sitemap_url_home

    hook (filter): Filter associative array with data to build node and its descendants for site home.

    Source: modules/sitemaps/sitemap-builder.php:604

    jetpack_sitemap_url

    hook (filter): Filter sitemap URL item before rendering it as XML. View Example

    Source: modules/sitemaps/sitemap-builder.php:1174