is_wp_error


is_wp_error ( $thing )

Parameters:
  • (mixed) thing The variable to check.
Returns:
  • (bool) Whether the variable is an instance of WP_Error.
Defined at:

Description

Checks whether the given variable is a WordPress Error.Returns whether `$thing` is an instance of the `WP_Error` class.

Related Functions

is_error, is_client_error, is_server_error, wp_generator, wp_editor

Top Google Results

User discussions

wpseek mobile