wp_die_jsonp_handler WordPress Filter Hook
The wp_die_jsonp_handler hook is triggered when a JSONP response is required for a WP_Error object. This hook allows for a custom function to be defined which will handle the JSONP response. The function must take two arguments: the WP_Error object, and the callback function name.
apply_filters( 'wp_die_jsonp_handler', callable $callback ) #
Filters the callback for killing WordPress execution for JSONP REST requests.
Parameters
- $callback
(callable)Callback function name.
Source
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |