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.
Parameters
- $ixr_error
(IXR_Error)(Required)
Return
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, '' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.1 | Introduced. |