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
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/sitemap_ping.txt · Last modified: 2018-12-08 16:05 by torpedo