Title: [Plugin: Google XML Sitemaps] filter/hook?
Last modified: August 20, 2016

---

# [Plugin: Google XML Sitemaps] filter/hook?

 *  [Zoinks! Graphics](https://wordpress.org/support/users/zoinks/)
 * (@zoinks)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-filterhook/)
 * I am interested in a filter/hook function for Google XML Sitemaps. Don’t know
   if it already exists and if so, how to implement it via my theme’s functions.
   php file. The reason being, I design WP sites using content from child pages 
   called into parent pages. I don’t want the child pages to show up in the search
   engines.
 * Sure, I could insert every single page ID in the Google XML Sitemaps exclude 
   setting, but (A) that’s unwieldy for a large number of pages, and (B) that doesn’t
   help when I add new subpages. Alternately I could achieve this by editing the
   $this->_options[“sm_b_exclude”] in sitemap-core.php file, but that won’t survive
   plugin updates.
 * Therefore I’d like to create a function that excludes children of certain pages,
   then have that function affect the output of the sitemap generated by Google 
   XML Sitemaps. Any thoughts?
 * [http://wordpress.org/extend/plugins/google-sitemap-generator/](http://wordpress.org/extend/plugins/google-sitemap-generator/)

The topic ‘[Plugin: Google XML Sitemaps] filter/hook?’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-generator/assets/icon-256x256.png?rev=2713572)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/google-sitemap-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-generator/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 0 replies
 * 1 participant
 * Last reply from: [Zoinks! Graphics](https://wordpress.org/support/users/zoinks/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-filterhook/)
 * Status: not resolved