xmlrpc_pingback_error

The WordPress Core xmlrpc pingback error hook.

Description

add_filter( 'xmlrpc_pingback_error', (string) $xmlrpc_pingback_error ); 

Parameters (1)

0. $xmlrpc_pingback_error (string) => 'xmlrpc_pingback_error'
The xmlrpc pingback error.

Usage

To run the hook, copy the example below.
  1. $xmlrpc_pingback_error = apply_filters( 'xmlrpc_pingback_error', $xmlrpc_pingback_error ); 
  2.  
  3. if ( !empty( $xmlrpc_pingback_error ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the xmlrpc_pingback_error callback 
  2. function filter_xmlrpc_pingback_error( $xmlrpc_pingback_error ) { 
  3. // make filter magic happen here... 
  4. return $xmlrpc_pingback_error
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'xmlrpc_pingback_error', 'filter_xmlrpc_pingback_error', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'xmlrpc_pingback_error', 'filter_xmlrpc_pingback_error', 10, 1 ); 

Defined (2)

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

/wp-includes/default-filters.php  
  1. add_filter( 'xmlrpc_pingback_error', 'xmlrpc_pingback_error' ); 
/wp-includes/class-wp-xmlrpc-server.php  
  1. return apply_filters( 'xmlrpc_pingback_error', new IXR_Error( $code, $message ) );