DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:sitemap_ping

Table of Contents

SITEMAP_PING

Description:
Ping search engines with the sitemap URL
DefaultAction:
The DokuWiki HTTP client is used for executing get for every search engine URL.
Preventable:
yes
Added:
2010-11-12

This event is signaled by pingSearchEngines() in inc/Sitemapper.php when a new sitemap has been generated in the indexer, handlers can use it to add or remove search engines that shall be pinged or do the pings themselves (by preventing the default action).

Passed Data

  • $data['ping_urls']: Array of URLs that will be pinged if the default action isn't prevented, the key of the array is the search engine name (as of 2010-11-20: google, yahoo, microsoft)
  • $data['encoded_sitemap_url']: The URL-encoded URL of the sitemap that can be easily used in search engine URLs

See also

devel/event/sitemap_ping.txt · Last modified: 2018-12-08 16:05 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki