xmlrpc_pingback_error( IXR_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_errorIXR_Errorrequired

Return

IXR_Error

Source

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

Changelog

VersionDescription
3.5.1Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.