wp_should_handle_php_error

wp_should_handle_php_error

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_should_handle_php_error') is found 1 times:

  • /wp-includes/class-wp-fatal-error-handler.php line 125
    		 *
    		 * @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