Support » Plugins » [Plugin: Google XML Sitemaps] Request for a new hook

  • Resolved Ofer Wald

    (@oferwald)


    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:
    http://trac.transposh.org/changeset/338

    Using this plugin didn’t increase memory usage or time in any significant way, and is probably quite safe.

    Thanks in advance,
    Ofer.

    http://wordpress.org/extend/plugins/google-sitemap-generator/

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Google XML Sitemaps] Request for a new hook’ is closed to new replies.