xmlrpc_pingback_error

Default filter attached to xmlrpc_pingback_error.

Description

(IXR_Error) xmlrpc_pingback_error( (IXR_Error) $ixr_error ); 

Returns a generic pingback error code unless the error code is 48, which reports that the pingback is already registered.

Returns (IXR_Error)

Parameters (1)

0. $ixr_error (IXR_Error)
The ixr error.

Usage

  1. if ( !function_exists( 'xmlrpc_pingback_error' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment.php'; 
  3.  
  4. // The ixr error. 
  5. $ixr_error = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = xmlrpc_pingback_error($ixr_error); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment.php  
  1. function xmlrpc_pingback_error( $ixr_error ) { 
  2. if ( $ixr_error->code === 48 ) 
  3. return $ixr_error; 
  4. return new IXR_Error( 0, '' );