do_action( ‘wp_error_added’, string|int $code, string $message, mixed $data, WP_Error $wp_error )

In this article

Fires when an error is added to a WP_Error object.

Parameters

$codestring|int
Error code.
$messagestring
Error message.
$datamixed
Error data. Might be empty.
$wp_errorWP_Error
The WP_Error object.

Source

do_action( 'wp_error_added', $code, $message, $data, $this );

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.