Sends a pingback error based on the given error code and message.
Parameters
$code
intrequired- Error code.
$message
stringrequired- Error message.
Source
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 ) );
}
Hooks
- apply_filters( ‘xmlrpc_pingback_error’,
IXR_Error $error ) Filters the XML-RPC pingback error return.
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.