wp_die_xmlrpc_handler
Filters the callback for killing WordPress execution for XML-RPC requests.
Description
Parameters (1)
- 0. $xmlrpc_wp_die_handler (string) =>
'_xmlrpc_wp_die_handler'
- The xmlrpc
wp
die handler.
Usage
- To run the hook, copy the example below.
- $xmlrpc_wp_die_handler = apply_filters( 'wp_die_xmlrpc_handler', $xmlrpc_wp_die_handler );
- if ( !empty( $xmlrpc_wp_die_handler ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wp_die_xmlrpc_handler callback
- function filter_wp_die_xmlrpc_handler( $xmlrpc_wp_die_handler ) {
- // make filter magic happen here...
- return $xmlrpc_wp_die_handler;
- };
- // add the filter
- add_filter( 'wp_die_xmlrpc_handler', 'filter_wp_die_xmlrpc_handler', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wp_die_xmlrpc_handler', 'filter_wp_die_xmlrpc_handler', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/functions.php
- $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );