Codex tools: Log in / create account
Contents |
Check whether variable is a WordPress Error.
Looks at the object and if a WP_Error class. Does not check to see if the parent is also WP_Error, so can't inherit WP_Error and still use this function.
<?php is_wp_error( $thing ) ?>
Since: 2.1.0
is_wp_error() is located in wp-includes/classes.php.