wp_should_handle_php_error

wp_should_handle_php_error

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_should_handle_php_error') is found 1 times:

  • /wp-includes/class-wp-fatal-error-handler.php line 125
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
         *
         * @param bool  $should_handle_error Whether the error should be handled by the fatal error handler.
         * @param array $error               Error information retrieved from `error_get_last()`.
         */
        return (bool) apply_filters( 'wp_should_handle_php_error', false, $error );
    }
     
    /**
     * Displays the PHP error template and sends the HTTP status code, typically 500.
     *
     * A drop-in 'php-error.php' can be used as a custom template. This drop-in should control the HTTP status code and