WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
112 | * This filter is only fired if the error is not already configured to be handled by WordPress core. As such, |
113 | * it exclusively allows adding further rules for which errors should be handled, but not removing existing |
114 | * ones. |
115 | * |
116 | * @since 5.2.0 |
117 | * |
118 | * @param bool $should_handle_error Whether the error should be handled by the fatal error handler. |
119 | * @param array $error Error information retrieved from error_get_last(). |
120 | */ |
121 | return (bool) apply_filters( 'wp_should_handle_php_error', false, $error ); |
122 | } |
123 |
|
124 | /** |
125 | * Displays the PHP error template and sends the HTTP status code, typically 500. |
126 | * |
127 | * A drop-in 'php-error.php' can be used as a custom template. This drop-in should control the HTTP status code and |
128 | * print the HTML markup indicating that a PHP error occurred. Note that this drop-in may potentially be executed |
129 | * very early in the WordPress bootstrap process, so any core functions used that are not part of |
130 | * `wp-includes/load.php` should be checked for before being called. |