apply_filters( ‘wp_php_error_message’, string $message, array $error )

In this article

Filters the message that the default PHP error template displays.

Parameters

$messagestring
HTML error message to display.
$errorarray
Error information retrieved from error_get_last().

Source

$message = apply_filters( 'wp_php_error_message', $message, $error );

Changelog

VersionDescription
5.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.