wp_xmlrpc_server::pingback_error() WordPress Method

The wp_xmlrpc_server::pingback_error() method is used to return an error when a pingback is not successful. This method is used internally by the Wordpress XML-RPC server and is not intended to be called directly.

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.


Top ↑

Return

(IXR_Error) Error object.


Top ↑

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 ) );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

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
Show More