W3cubDocs

/WordPress

do_action( ‘is_wp_error_instance’, WP_Error $thing )

Fires when is_wp_error() is called and its parameter is an instance of WP_Error.

Parameters

$thingWP_Error
The error object passed to is_wp_error().

Source

do_action( 'is_wp_error_instance', $thing );

Changelog

Version Description
5.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/is_wp_error_instance