Title: Ping Webmaster tools
Last modified: August 20, 2016

---

# Ping Webmaster tools

 *  Resolved [kingbt](https://wordpress.org/support/users/kingbt/)
 * (@kingbt)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/ping-webmaster-tools/)
 * This plugin has a big problem: it does not ping the googlebot via Webmaster tools.
 * The code below will help ping it but should be on publish_post action or something
   like it.
 *     ```
       $base = $GLOBALS['wp_rewrite']->using_index_permalinks() ? 'index.php/' : '';
        $sitemapurl = urlencode( home_url( $base . 'sitemap.xml' ) );
   
        wp_remote_get( 'http://www.google.com/webmasters/tools/ping?sitemap=' . $sitemapurl );
       ```
   
 * The code is not for multisite!
 * [http://wordpress.org/extend/plugins/xml-sitemap-feed/](http://wordpress.org/extend/plugins/xml-sitemap-feed/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/ping-webmaster-tools/#post-3244358)
 * Hi kingbt,
 * Not pinging is by design as it does not (seem) to change much. Google will crawl
   in it’s own time anyway. Of course, this is open for discussion but that is what
   I have noticed… In fact, not pinging seems to increase the bot visits as if it
   grows lazy waiting for the next ping, missing all kinds of comment activity on
   the site. I have no proof for this but it is an observation.
 * Plus, when I started with the plugin, WordPress used the ping-o-matic service
   by default. Is this still the case? I don’t know because I only work with multi-
   site these days.
 * In any case, I have pinging (as an option) on the todo list for a coming version
   but it has no high priority in my mind. But seeing you call it a ‘big problem’,
   you feel differently, I presume?
 * Please argue your case 😉
 *  Thread Starter [kingbt](https://wordpress.org/support/users/kingbt/)
 * (@kingbt)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/ping-webmaster-tools/#post-3244360)
 * My content is NOT on the first page where the pagerank is big and where googlebot
   crawls it hourly, so the only way to notify google about my content is via the
   sitemap and a ping (how I described it above).
 * With a ping the new content is indexed within seconds, else (with no ping) it
   is indexed in hours/days.
 * Ping o matic should work when your content is in the latest 10 posts on the main
   feed. If it isn’t than it is useless.
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/ping-webmaster-tools/#post-3244362)
 * OK, I see your point… I’ll move the ping feature up the todo list ladder. But
   I cannot promise anything soon because I’m a bit busy at this time.
 * By the way, why would your code not be for multisite?
 *  Thread Starter [kingbt](https://wordpress.org/support/users/kingbt/)
 * (@kingbt)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/ping-webmaster-tools/#post-3244363)
 * I have not tested the code on multisite but should work fine.
 * By the way, nice plugin.
 *  [luutoan](https://wordpress.org/support/users/luutoan/)
 * (@luutoan)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ping-webmaster-tools/#post-3244399)
 * thanks you. i [working](http://anhem.vn)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Ping Webmaster tools’ is closed to new replies.

 * ![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)
 * [XML Sitemap & Google News](https://wordpress.org/plugins/xml-sitemap-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-sitemap-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-sitemap-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [luutoan](https://wordpress.org/support/users/luutoan/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/ping-webmaster-tools/#post-3244399)
 * Status: resolved