Filter hook 'wp_sitemaps_posts_pre_url_list'

in WP Core File wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php at line 87

Description

Filters the posts URL list before it is generated. Returning a non-null value will effectively short-circuit the generation, returning that value instead.

Occurrences

Filename Line Number
wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php 87

Parameters

Type Name Description
array[]|null $url_list The URL list. Default null.
string $post_type Post type name.
int $page_num Page of results.

PHP Doc

/**
		 * Filters the posts URL list before it is generated.
		 *
		 * Returning a non-null value will effectively short-circuit the generation,
		 * returning that value instead.
		 *
		 * @since 5.5.0
		 *
		 * @param array[]|null $url_list  The URL list. Default null.
		 * @param string       $post_type Post type name.
		 * @param int          $page_num  Page of results.
		 */