Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.
Filtering the XML Sitemap Data for All in One SEO Pack can be done with the aiosp_sitemap_data hook.
This hook can accept four arguments; $sitemap_data, $type, $page, and $options.
$sitemap_data is an array of all URLs in your sitemap and accompanying data.
$type is the type of sitemap, usually root if you don’t have any additional sitemaps like a video sitemap
$page Starting at 0, this is the current page of a paged sitemap (0 if not paged)
$options This is an array of the sitemap options set.