wp_sitemaps_users_pre_url_list WordPress Filter Hook
wp_sitemaps_users_pre_url_list is a hook that is called before the list of user sitemap URLs is generated. It can be used to modify the list of user sitemap URLs before it is generated.
apply_filters( 'wp_sitemaps_users_pre_url_list', array[]|null $url_list , int $page_num ) #
Filters the users URL list before it is generated.
Description
Returning a non-null value will effectively short-circuit the generation, returning that value instead.
Parameters
- $url_list
(array[]|null)The URL list. Default null.
- $page_num
(int)Page of results.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |