Title: _xmlrpc_wp_die_handler
Published: April 25, 2014
Last modified: February 24, 2026

---

# _xmlrpc_wp_die_handler( string $message, string $title, string|array $args = array() )

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Kills WordPress execution and displays XML response with an error message.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#description)󠁿

This is the handler for [wp_die()](https://developer.wordpress.org/reference/functions/wp_die/)
when processing XML-RPC requests.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#parameters)󠁿

 `$message`stringrequired

Error message.

`$title`stringoptional

Error title. Default empty string.

`$args`string|arrayoptional

Arguments to control behavior.

Default:`array()`

## 󠀁[Source](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#source)󠁿

    ```php
    function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) {
    	global $wp_xmlrpc_server;

    	list( $message, $title, $parsed_args ) = _wp_die_process_input( $message, $title, $args );

    	if ( ! headers_sent() ) {
    		nocache_headers();
    	}

    	if ( $wp_xmlrpc_server ) {
    		$error = new IXR_Error( $parsed_args['response'], $message );
    		$wp_xmlrpc_server->output( $error->getXml() );
    	}
    	if ( $parsed_args['exit'] ) {
    		die();
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/functions.php#L4189)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/functions.php#L4189-L4205)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#related)󠁿

| Uses | Description | 
| [_wp_die_process_input()](https://developer.wordpress.org/reference/functions/_wp_die_process_input/)`wp-includes/functions.php` |

Processes arguments passed to [wp_die()](https://developer.wordpress.org/reference/functions/wp_die/) consistently for its handlers.

  | 
| [nocache_headers()](https://developer.wordpress.org/reference/functions/nocache_headers/)`wp-includes/functions.php` |

Sets the HTTP headers to prevent caching for the different browsers.

  | 
| [IXR_Error::__construct()](https://developer.wordpress.org/reference/classes/ixr_error/__construct/)`wp-includes/IXR/class-IXR-error.php` |

PHP5 constructor.

  |

[Show 1 more](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/_xmlrpc_wp_die_handler/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.2.0](https://developer.wordpress.org/reference/since/3.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_xmlrpc_wp_die_handler%2F)
before being able to contribute a note or feedback.