Filter hook 'wp_php_error_message'

in WP Core File wp-includes/class-wp-fatal-error-handler.php at line 220

Description

Filters the message that the default PHP error template displays.

Occurrences

Filename Line Number
wp-includes/class-wp-fatal-error-handler.php 220

Parameters

Type Name Description
string $message HTML error message to display.
array $error Error information retrieved from `error_get_last()`.

PHP Doc

/**
		 * Filters the message that the default PHP error template displays.
		 *
		 * @since 5.2.0
		 *
		 * @param string $message HTML error message to display.
		 * @param array  $error   Error information retrieved from `error_get_last()`.
		 */