Core Function
View Source on Trac ↗ wp_trigger_error()
wp_trigger_error( mixed $function_name, mixed $message, mixed $error_level = E_USER_NOTICE ) Generates a user-level error/warning/notice/deprecation message.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $function_name string | The function that triggered the error. Required |
| string | $message The message explaining the error. The message can contain allowed HTML 'a' (with href), 'code', 'br', 'em', and 'strong' tags and http or https protocols. If it contains other HTML tags or protocols, the message should be escaped before passing to this function to avoid being stripped {@see wp_kses()}. Required |
| int | $error_level Optional. The designated error type for this error. Only works with E_USER family of constants. Default E_USER_NOTICE. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
6.4.0
Source File
wp-includes/functions.php
Advertisement