do_action( 'wp_trigger_error_run', string $function_name, string $message, int $error_level )
- Since
- 6.4.0
Fires when the given function triggers a user-level error/warning/notice/deprecation message.
Description
Can be used for debug backtracking.
Compatibility
- WordPress
- since 6.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$function_namestring- The function that triggered the error.
$messagestring- The message explaining the error.
$error_levelint- The designated error type for this error.
Where this hook fires · 1
wp-includes/functions.php:6238wp_trigger_error()
Source code
* @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(Changelog
Introduced in 6.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.