wp_die_xmlrpc_handler
Filter HookDescription
Filters the callback for killing WordPress execution for XML-RPC requests.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3806 |
Hook Parameters
Type | Name | Description |
---|---|---|
callable
|
$callback
|
Callback function name. |
Usage Examples
Basic Usage
<?php
// Hook into wp_die_xmlrpc_handler
add_filter('wp_die_xmlrpc_handler', 'my_custom_filter', 10, 1);
function my_custom_filter($callback) {
// Your custom filtering logic here
return $callback;
}
Source Code Context
wp-includes/functions.php:3806
- How this hook is used in WordPress core
<?php
3801 *
3802 * @since 3.4.0
3803 *
3804 * @param callable $callback Callback function name.
3805 */
3806 $callback = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );
3807 } elseif ( wp_is_xml_request()
3808 || isset( $wp_query ) &&
3809 ( function_exists( 'is_feed' ) && is_feed()
3810 || function_exists( 'is_comment_feed' ) && is_comment_feed()
3811 || function_exists( 'is_trackback' ) && is_trackback() ) ) {
PHP Documentation
<?php
/**
* Filters the callback for killing WordPress execution for XML-RPC requests.
*
* @since 3.4.0
*
* @param callable $callback Callback function name.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.