WordPress at a glance
filter is not described

wp_php_error_message filter-hook . WP 5.2.0

Filters the message that the default PHP error template displays.

Usage

add_filter( 'wp_php_error_message', 'filter_function_name_2032', 10, 2 );
function filter_function_name_2032( $message, $error ){
	// filter...

	return $message;
}
$message(string)
HTML error message to display.
$error(array)
Error information retrieved from error_get_last().

Changelog

Since 5.2.0 Introduced.

Where the hook is called

WP_Fatal_Error_Handler::display_default_error_template()
wp_php_error_message
wp-includes/class-wp-fatal-error-handler.php 191
$message = apply_filters( 'wp_php_error_message', $message, $error );

Where the hook is used (in WP core)

Usage not found!