wp_sitemaps_users_entry WordPress Filter Hook
The wp_sitemaps_users_entry hook is used to add a user to the WordPress sitemap. This hook is triggered when a new user is created or an existing user is updated.
apply_filters( 'wp_sitemaps_users_entry', array $sitemap_entry , WP_User $user ) #
Filters the sitemap entry for an individual user.
Parameters
- $sitemap_entry
(array)Sitemap entry for the user.
- $user
(WP_User)User object.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |