xmlrpc_pingback_error() WordPress Function

The xmlrpc_pingback_error() function in WordPress is used to return an error when a pingback is unable to be processed. This function can be used when a pingback is received by the server, but the target URL is not accessible or does not exist.

xmlrpc_pingback_error( IXR_Error $ixr_error ) #

Default filter attached to xmlrpc_pingback_error.


Description

Returns a generic pingback error code unless the error code is 48, which reports that the pingback is already registered.


Top ↑

Parameters

$ixr_error

(IXR_Error)(Required)


Top ↑

Return

(IXR_Error)


Top ↑

Source

File: wp-includes/comment.php

function xmlrpc_pingback_error( $ixr_error ) {
	if ( 48 === $ixr_error->code ) {
		return $ixr_error;
	}
	return new IXR_Error( 0, '' );
}


Top ↑

Changelog

Changelog
VersionDescription
3.5.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More