apply_filters( 'wp_should_handle_php_error', bool $should_handle_error, array $error )

Filters whether a given thrown error should be handled by the fatal error handler.


Description Description

This filter is only fired if the error is not already configured to be handled by WordPress core. As such, it exclusively allows adding further rules for which errors should be handled, but not removing existing ones.


Parameters Parameters

$should_handle_error

(bool) Whether the error should be handled by the fatal error handler.

$error

(array) Error information retrieved from error_get_last().


Top ↑

Source Source

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

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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