do_action( ‘wp_trigger_error_always_run’, string $function_name, string $message, int $error_level )

In this article

Always fires when the given function triggers a user-level error/warning/notice/deprecation message.

Description

Can be used to attach custom error handlers even if WP_DEBUG is not truthy.

Parameters

$function_namestring
The function that triggered the error.
$messagestring
The message explaining the error.
$error_levelint
The designated error type for this error.

Source

do_action( 'wp_trigger_error_always_run', $function_name, $message, $error_level );

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

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