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

Fires when an error is added to a WP_Error object.


Parameters

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

Top ↑

Source

File: wp-includes/class-wp-error.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes

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