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().


Top ↑

Source

File: wp-includes/class-wp-fatal-error-handler.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.