wp_sitemaps_posts_show_on_front_entry WordPress Filter Hook
The wp_sitemaps_posts_show_on_front_entry hook is used to determine if a post should be included in the sitemap. This hook is called by the sitemap feature in WordPress.
apply_filters( 'wp_sitemaps_posts_show_on_front_entry', array $sitemap_entry ) #
Filters the sitemap entry for the home page when the ‘show_on_front’ option equals ‘posts’.
Parameters
- $sitemap_entry
(array)Sitemap entry for the home page.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |