Core Function
View Source on Trac ↗ is_wp_error()
is_wp_error( mixed $thing ) Checks whether the given variable is a WordPress Error.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $thing mixed | The variable to check. Required |
Return Value
(bool)
Whether the variable is an instance of WP_Error.
Function Information
Since Version
2.1.0
Source File
wp-includes/load.php
Advertisement