wp_php_error_message WordPress Filter Hook
The wp_php_error_message hook is used to display an error message when a PHP error occurs. This hook is useful for debugging purposes.
apply_filters( 'wp_php_error_message', string $message , array $error ) #
Filters the message that the default PHP error template displays.
Parameters
- $message
(string)HTML error message to display.
- $error
(array)Error information retrieved from
error_get_last()
.
Source
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |