wp_die_jsonp_handler filter-hookWP 5.2.0

Filters the callback for killing WordPress execution for JSONP REST requests.

Usage

add_filter( 'wp_die_jsonp_handler', 'wp_kama_die_jsonp_handler_filter' );

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

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

Changelog

Since 5.2.0 Introduced.

Where the hook is called

wp_die()
wp_die_jsonp_handler
wp-includes/functions.php 3679
$callback = apply_filters( 'wp_die_jsonp_handler', '_jsonp_wp_die_handler' );

Where the hook is used in WordPress

Usage not found.