wp_die_handler
Filter HookDescription
Filters the callback for killing WordPress execution for all non-Ajax, non-JSON, non-XML requests.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3828 |
Hook Parameters
Type | Name | Description |
---|---|---|
callable
|
$callback
|
Callback function name. |
Usage Examples
Basic Usage
<?php
// Hook into wp_die_handler
add_filter('wp_die_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:3828
- How this hook is used in WordPress core
<?php
3823 *
3824 * @since 3.0.0
3825 *
3826 * @param callable $callback Callback function name.
3827 */
3828 $callback = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );
3829 }
3830
3831 call_user_func( $callback, $message, $title, $args );
3832 }
3833
PHP Documentation
<?php
/**
* Filters the callback for killing WordPress execution for all non-Ajax, non-JSON, non-XML requests.
*
* @since 3.0.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.