wp_die_json_handler WordPress Filter Hook
The wp_die_json_handler() function is a custom handler for wp_die() that outputs a JSON response. This can be useful for AJAX requests that return JSON data.
apply_filters( 'wp_die_json_handler', callable $callback ) #
Filters the callback for killing WordPress execution for JSON requests.
Parameters
- $callback
(callable)Callback function name.
Source
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |