Filter hook 'xmlrpc_pingback_error'

in WP Core File wp-includes/class-wp-xmlrpc-server.php at line 7224

View Source

xmlrpc_pingback_error

Filter Hook
Description
Filters the XML-RPC pingback error return.

Hook Information

File Location wp-includes/class-wp-xmlrpc-server.php View on GitHub
Hook Type Filter
Line Number 7224

Hook Parameters

Type Name Description
IXR_Error $error An IXR_Error object containing the error code and message.

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_pingback_error
add_filter('xmlrpc_pingback_error', 'my_custom_filter', 10, 1);

function my_custom_filter($error) {
    // Your custom filtering logic here
    return $error;
}

Source Code Context

wp-includes/class-wp-xmlrpc-server.php:7224 - How this hook is used in WordPress core
<?php
7219  		 *
7220  		 * @since 3.5.1
7221  		 *
7222  		 * @param IXR_Error $error An IXR_Error object containing the error code and message.
7223  		 */
7224  		return apply_filters( 'xmlrpc_pingback_error', new IXR_Error( $code, $message ) );
7225  	}
7226  }

PHP Documentation

<?php
/**
		 * 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.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks

Related hooks will be displayed here in future updates.