is_wp_error_instance WordPress Action Hook

The is_wp_error_instance hook is used to check whether a given object is an instance of the WP_Error class.

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

$thing

(WP_Error)The error object passed to is_wp_error().


Top ↑

Source

File: wp-includes/load.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.