[Plugin: Google XML Sitemaps] Request for a new hook
-
Hello Arnee,
I would like to request that you add an additional hook to your great plugin ??
The hook name I suggest is sm_addurl, and will be positioned at the last line on the add_url function like this:
do_action('sm_addurl',$loc, $lastMod, $changeFreq, $priority,&$this);
Currently – this is line 1509 of sitemap-core.php
The idea of this hook is to allow other plugin writers that generate multiple pages per original page to be able to add their pages to the sitemap, as I am writing a translation plugin I am adding a few urls on each original url.
sending the complete set of parameters allow more flexibility in the plugin (I for example reduced the priority for the translated pages)You can see the example in my plugin here:
https://trac.transposh.org/changeset/338Using this plugin didn’t increase memory usage or time in any significant way, and is probably quite safe.
Thanks in advance,
Ofer.https://www.ads-software.com/extend/plugins/google-sitemap-generator/
- The topic ‘[Plugin: Google XML Sitemaps] Request for a new hook’ is closed to new replies.