is_wp_error


is_wp_error ( $thing )

Parameters:
  • (mixed) $thing Check if unknown variable is a WP_Error object.
Returns:
  • (bool) True, if WP_Error. False, if not WP_Error.
Defined at:

Description

Check whether variable is a WordPress Error.

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

Related Functions

is_error, is_server_error, is_client_error, wp_generator, wp_editor

Top Google Results

User discussions

wpseek mobile