wp_die_handler WordPress Filter Hook
The wp_die_handler hook is called when a user tries to access a page that does not exist. It allows you to customise the message that is displayed to the user.
apply_filters( 'wp_die_handler', callable $callback ) #
Filters the callback for killing WordPress execution for all non-Ajax, non-JSON, non-XML requests.
Parameters
- $callback
(callable)Callback function name.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |