Function __global->ping_sitemap_xml

Definitions

sources/sitemap_xml.php

  • Ping search engines with an updated sitemap.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$url URLPATH No No required parameter N/A N/A Sitemap URL
$trigger_error boolean No No False N/A N/A Whether to throw a software error, on error

Returns

  • HTTP result output
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Ping search engines with an updated sitemap.
 *
 * @param  URLPATH $url Sitemap URL
 * @param  boolean $trigger_error Whether to throw a software error, on error
 * @return string HTTP result output
 */

function ping_sitemap_xml(string $url, bool $trigger_error = false) : string