W3cubDocs

/WordPress

wp_xmlrpc_server::pingback_error( int $code, string $message )

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

Parameters

$code

(int) (Required) Error code.

$message

(string) (Required) Error message.

Return

(IXR_Error) Error object.

Source

File: wp-includes/class-wp-xmlrpc-server.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 ) );
	}

Changelog

Version Description
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/pingback_error