Hello there
There is no way to add own filters to sitemap generation.
In order to keep the module as simple as it is, let's add simple alter invoke for HOOK_sitemap_links_alter(array) for ability to create own filters implementation for simple_sitemap.

Attached a patch

CommentFileSizeAuthor
ability_to_last_chance_alter.diff500 bytespodarok
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

podarok created an issue. See original summary.

  • gbyte.co committed 2a7447c on 8.x-2.x
    Issue #2692275 by podarok: Ability to alter sitemap links before saving
    
gbyte’s picture

Status: Needs review » Fixed

Added alter hook to a slightly different location.

Can be invoked with

hook_simple_sitemap_links_alter(&$links) {
}

Actually we should be moving away from hooks and start using events, maybe you will find the time to submit a patch which uses sf events. Feel free to open a new issue.

podarok’s picture

Thanks for committing.
I would like to ask you to add patch contribution next time in the future.

Thanks in advance

gbyte’s picture

Status: Fixed » Closed (fixed)

I always add attribution, thing is, I never used your patch (see previous post) and even if I did, asking me to attribute this oneliner is asking much. ;) Your contribution to this feature was little over requesting it and that's been honored.