wp_die_handler filter-hookWP 3.0.0

Filters the callback for killing WordPress execution for all non-Ajax, non-JSON, non-XML requests.

Usage

add_filter( 'wp_die_handler', 'wp_kama_die_handler_filter' );

/**
 * Function for `wp_die_handler` filter-hook.
 * 
 * @param callable $callback Callback function name.
 *
 * @return callable
 */
function wp_kama_die_handler_filter( $callback ){

	// filter...
	return $callback;
}
$callback(callable)
Callback function name.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wp_die()
wp_die_handler
wp-includes/functions.php 3782
$callback = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );

Where the hook is used in WordPress

Usage not found.