wp_die_json_handler
Filters the callback for killing WordPress execution for JSON requests.
Usage
add_filter( 'wp_die_json_handler', 'wp_kama_die_json_handler_filter' ); /** * Function for `wp_die_json_handler` filter-hook. * * @param callable $callback Callback function name. * * @return callable */ function wp_kama_die_json_handler_filter( $callback ){ // filter... return $callback; }
- $callback(callable)
- Callback function name.
Changelog
Since 5.1.0 | Introduced. |
Where the hook is called
wp_die_json_handler
wp-includes/functions.php 3744
$callback = apply_filters( 'wp_die_json_handler', '_json_wp_die_handler' );