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.10
- 6.8.11
- 6.9.10
- 7.0.7
- 7.1.3
Present in every tracked release (6.7.10 to 7.1.3).
Parameters
$function_namestring- The function that was called.
$messagestring- A message explaining what has been done incorrectly.
$error_levelint- The designated error type for this error.
Where this hook fires · 1
wp-includes/functions.php:6099wp_trigger_error()
Source code
* @since 6.4.0 * * @param string $function_name The function that was called. * @param string $message A message explaining what has been done incorrectly. * @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.10 through 7.1.3.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.11 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.