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 Parameters


(string|int) Error code.


(string) Error message.


(mixed) Error data. Might be empty.


(WP_Error) The WP_Error object.

Top ↑

Source Source

File: wp-includes/class-wp-error.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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