wpseo_ping_search_engines

Notify search engines of the updated sitemap.

Description

wpseo_ping_search_engines( (null) $sitemapurl = null ); 

Parameters (1)

0. $sitemapurl — Optional. (null) => null
URL to make the ping for.

Usage

  1. if ( !function_exists( 'wpseo_ping_search_engines' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-functions-deprecated.php'; 
  3.  
  4. // Optional URL to make the ping for. 
  5. $sitemapurl = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpseo_ping_search_engines($sitemapurl); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/wpseo-functions-deprecated.php  
  1. function wpseo_ping_search_engines( $sitemapurl = null ) { 
  2. _deprecated_function( __FUNCTION__, 'WPSEO 3.2.0', 'WPSEO_Sitemaps::ping_search_engines()' ); 
  3.  
  4. WPSEO_Sitemaps::ping_search_engines( $sitemapurl );