wp_sitemaps_posts_entry WordPress Filter Hook

The wp_sitemaps_posts_entry hook allows you to modify the sitemap entry for a post. This can be useful if you need to change the priority or frequency for a post, or if you need to add additional information to the sitemap entry.

apply_filters( 'wp_sitemaps_posts_entry', array $sitemap_entry, WP_Post $post, string $post_type ) #

Filters the sitemap entry for an individual post.


Parameters

$sitemap_entry

(array)Sitemap entry for the post.

$post

(WP_Post)Post object.

$post_type

(string)Name of the post_type.


Top ↑

Source

File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.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.