do_action( 'wp_trigger_error_always_run', string $function_name, string $message, int $error_level )
- Since
- 7.0.0
Always fires when the given function triggers a user-level error/warning/notice/deprecation message.
Description
Can be used to attach custom error handlers even if WP_DEBUG is not truthy.
Compatibility
- WordPress
- since 7.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in 2 of the 5 tracked releases, added in 7.0.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:6206wp_trigger_error()
Source code
* @since 7.0.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_always_run', $function_name, $message, $error_level ); /** * Filters whether to trigger an error. * * @since 7.0.0 *Changelog
Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 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.