wp_sitemaps_index_entry WordPress Filter Hook

The wp_sitemaps_index_entry hook is used to add sitemap entries to the sitemaps index. This hook is used by the WP Sitemaps plugin to add sitemap entries to the sitemaps index.

apply_filters( 'wp_sitemaps_index_entry', array $sitemap_entry, string $object_type, string $object_subtype, int $page ) #

Filters the sitemap entry for the sitemap index.


Parameters

$sitemap_entry

(array)Sitemap entry for the post.

$object_type

(string)Object empty name.

$object_subtype

(string)Object subtype name. Empty string if the object type does not support subtypes.

$page

(int)Page number of results.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.