WordPress at Your Fingertips
action is not described

wp_error_added action-hook . WP 5.6.0

Fires when an error is added to a WP_Error object.

Usage

add_action( 'wp_error_added', 'action_function_name_9003', 10, 4 );
function action_function_name_9003( $code, $message, $data, $wp_error ){
	// action...
}
$code(string|int)
Error code.
$message(string)
Error message.
$data(mixed)
Error data. Might be empty.
$wp_error(WP_Error)
The WP_Error object.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

WP_Error::add()
wp_error_added
wp-includes/class-wp-error.php 206
do_action( 'wp_error_added', $code, $message, $data, $this );

Where in WP core the hook is used WordPress

Usage not found.