apply_filters( ‘wp_trigger_error_trigger_error’, bool $trigger, string $function_name, string $message, int $error_level )

In this article

Filters whether to trigger an error.

Parameters

$triggerbool
Whether to trigger the error. Default true.
$function_namestring
The function that triggered the error.
$messagestring
The message explaining the error.
$error_levelint
The designated error type for this error.

Source

if ( ! apply_filters( 'wp_trigger_error_trigger_error', true, $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.