WP_Fatal_Error_Handler::display_default_error_template

SummerySummery

Displays the default PHP error template.

Syntax

WP_Fatal_Error_Handler::display_default_error_template( array $error, true|WP_Error $handled )

DescriptionDescription

This method is called conditionally if no ‘php-error.php’ drop-in is available.

It calls wp_die() with a message indicating that the site is experiencing technical difficulties and a login link to the admin backend. The ‘wp_php_error_message’ and ‘wp_php_error_args’ filters can be used to modify these parameters.

ParametersParameters

$error

(array) (Required) Error information retrieved from error_get_last().

$handled

(true|WP_Error) (Required) Whether Recovery Mode handled the fatal error.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.3.0 The $handled parameter was added.
5.2.0 Introduced.
Scroll to Top