You use BuddyPress or BuddyBoss plugin and you would like to add Members to the XML sitemap?
To do that, go to SEO, XML Sitemaps page.
Check “Enable Author Sitemap” option.
Save changes and flush your permalinks.
By default, only users with posts published on your site (ie: authors) will be shown in the sitemap.
The trick is to use the seopress_sitemaps_author_query hook to filter this query to list your members.
Just copy and paste the example below to your functions.php file of your child theme / theme or by using a must-use plugin.
Hook name: seopress_sitemaps_author_query
Required version: 3.6.5