WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/discover pingback server uri

Description

Finds a pingback server URI based on the given URL.

Checks the xhtml for the rel="pingback" link and x-pingback headers. It does a check for the x-pingback headers first and returns that, if available. The check for the rel="pingback" has more overhead than just the header.

Usage

<?php discover_pingback_server_uri$url$deprecated ?>

Parameters

$url
(string) (required) URL to ping.
Default: None
$deprecated
(integer) (Not Used.)
Default: None

Return Values

(boolean|string) 
False on failure, string containing URI on success.

Examples

Notes

Change Log

Since: 1.5.0

Source File

discover_pingback_server_uri() is located in wp-includes/comment.php.

Related

See also index of Function Reference and index of Template Tags.