W3cubDocs

/WordPress

apply_filters( 'wp_sitemaps_posts_pre_url_list', array $url_list, string $post_type, int $page_num )

Filters the posts URL list before it is generated.

Description

Passing a non-null value will effectively short-circuit the generation, returning that value instead.

Parameters

$url_list

(array) The URL list. Default null.

$post_type

(string) Post type name.

$page_num

(int) Page of results.

Source

File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php

View on Trac

Changelog

Version Description
5.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_posts_pre_url_list