wp_die_ajax_handler WordPress Filter Hook
The wp_die_ajax_handler hook is triggered when an Ajax call results in an error. It can be used to customize the error message and/or perform cleanup tasks.
apply_filters( 'wp_die_ajax_handler', callable $callback ) #
Filters the callback for killing WordPress execution for Ajax requests.
Parameters
- $callback
(callable)Callback function name.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |