WordPress at a glance
function is not described

wp_xmlrpc_server::pingback_error() protected WP 3.6.0

Sends a pingback error based on the given error code and message.

{} It's a method of the class: wp_xmlrpc_server{}

Hooks from the method
Return

IXR_Error. Error object.

Usage

// protected - for code of main (parent) or child class
$result = $this->pingback_error( $code, $message );
$code(int) (required)
Error code.
$message(string) (required)
Error message.

Changelog

Since 3.6.0 Introduced.

Code of wp_xmlrpc_server::pingback_error() WP 5.5.3

<?php
protected function pingback_error( $code, $message ) {
	/**
	 * Filters the XML-RPC pingback error return.
	 *
	 * @since 3.5.1
	 *
	 * @param IXR_Error $error An IXR_Error object containing the error code and message.
	 */
	return apply_filters( 'xmlrpc_pingback_error', new IXR_Error( $code, $message ) );
}