xmlrpc_pingback_error filter-hookWP 3.5.1

Filters the XML-RPC pingback error return.

Usage

add_filter( 'xmlrpc_pingback_error', 'wp_kama_xmlrpc_pingback_error_filter' );

/**
 * Function for `xmlrpc_pingback_error` filter-hook.
 * 
 * @param IXR_Error $error An IXR_Error object containing the error code and message.
 *
 * @return IXR_Error
 */
function wp_kama_xmlrpc_pingback_error_filter( $error ){

	// filter...
	return $error;
}
$error(IXR_Error)
An IXR_Error object containing the error code and message.

Changelog

Since 3.5.1 Introduced.

Where the hook is called

wp_xmlrpc_server::pingback_error()
xmlrpc_pingback_error
wp-includes/class-wp-xmlrpc-server.php 7121
return apply_filters( 'xmlrpc_pingback_error', new IXR_Error( $code, $message ) );

Where the hook is used in WordPress

wp-includes/default-filters.php 302
add_filter( 'xmlrpc_pingback_error', 'xmlrpc_pingback_error' );