Maison GR Sitemap 1.0.1 has 1 actions and 10 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Maison GR Sitemap fires an action
add_action( 'wpml_switch_language', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Maison GR Sitemap is about to use
add_filter( 'maisongr_sitemap_credit', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters whether the page shows its "Made with maisongr-sitemap" line. * Default false: a credit on the public site is the site owner's choice * (WordPress.org guideline 10). */ apply_filters( 'maisongr_sitemap_credit', false ); -
/** * Filters the addresses the sitemap lists, after they are read from the site. * Each entry has loc, and optionally lastmod (YYYY-MM-DD), lang, alternates * and images. */ apply_filters( 'maisongr_sitemap_entries', $once ); -
/** * Filters the post types listed in the sitemap. Default: every public post * type but attachments. */ apply_filters( 'maisongr_sitemap_post_types', $types ); -
/** * Filters the taxonomies whose term archives are listed. Return an empty array * to list none. */ apply_filters( 'maisongr_sitemap_taxonomies', $taxonomies ); -
/** * Filters the theme the sitemap page is set in: name, light (and dark) * palette, fonts, icon. */ apply_filters( 'maisongr_sitemap_theme', $theme ); -
do_action( 'wpml_switch_language', 'all' ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_element_trid', null, $post->ID, $type ); -
apply_filters( 'wpml_get_element_translations', null, $trid, $type ); -
apply_filters( 'wpml_permalink', get_permalink( $id ), $t->language_code, true );
Generated from Maison GR Sitemap's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: