Active
Project:
XML sitemap
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2025 at 20:05 UTC
Updated:
22 Sep 2025 at 20:05 UTC
Jump to comment: Most recent
Say, I have 3 sitemaps and I want to remove specific items from those sitemaps based on very complex business logic. I try setting $element = NULL in hook_xmlsitemap_element_alter() but that causes problems because other hook implementations expect it to be an array.
NA
Create a flag in &$element to have it excluded, say, $element['exclude'] = TRUE.
TBD
TBD
TBD
TBD
Comments