is_wp_error

SummerySummery

Check whether variable is a WordPress Error.

Syntax

is_wp_error( mixed $thing )

DescriptionDescription

Returns true if $thing is an object of the WP_Error class.

ParametersParameters

$thing

(mixed) (Required) Check if unknown variable is a WP_Error object.

ReturnReturn

(bool) True, if WP_Error. False, if not WP_Error.

SourceSource

File: wp-includes/load.php


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top