Filters the posts URL list before it is generated.
Returning a non-null value will effectively short-circuit the generation, returning that value instead.
$url_listarray[]|null
$post_typestring
$page_numint
$url_list = apply_filters(
'wp_sitemaps_posts_pre_url_list',
null,
$post_type,
$page_num
);
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_posts_pre_url_list