Fires when the given function triggers a user-level error/warning/notice/deprecation message.
$function_namestring$messagestring$error_levelintwp-includes/functions.php:6148wp_trigger_error() * @since 6.4.0 * * @param string $function_name The function that triggered the error. * @param string $message The message explaining the error. * @param int $error_level The designated error type for this error. */ do_action( 'wp_trigger_error_run', $function_name, $message, $error_level ); if ( ! empty( $function_name ) ) { $message = sprintf( '%s(): %s', $function_name, $message ); } $message = wp_kses(Introduced in 6.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.