Action hook 'wp_error_added'

in WP Core File wp-includes/class-wp-error.php at line 209

Description

Fires when an error is added to a WP_Error object.

Occurrences

Filename Line Number
wp-includes/class-wp-error.php 209

Parameters

Type Name Description
string|int $code Error code.
string $message Error message.
mixed $data Error data. Might be empty.
WP_Error $wp_error The WP_Error object.

PHP Doc

/**
		 * Fires when an error is added to a WP_Error object.
		 *
		 * @since 5.6.0
		 *
		 * @param string|int $code     Error code.
		 * @param string     $message  Error message.
		 * @param mixed      $data     Error data. Might be empty.
		 * @param WP_Error   $wp_error The WP_Error object.
		 */