is_wp_error

Advertisement

Summery Summery

Check whether variable is a WordPress Error.

Syntax Syntax

is_wp_error( mixed $thing )

Description Description

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

Parameters Parameters

$thing

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

Return Return

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

Source Source

File: wp-includes/load.php

 * @return bool True if themes should be used, false otherwise.
 */
function wp_using_themes() {

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply