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

$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 Source

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

View on Trac



Top ↑

Changelog 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.