WP_Theme::errors()publicWP 3.4.0

Returns errors property.

Method of the class: WP_Theme{}

No Hooks.

Return

WP_Error|false. WP_Error if there are errors, or false.

Usage

$WP_Theme = new WP_Theme();
$WP_Theme->errors();

Changelog

Since 3.4.0 Introduced.

WP_Theme::errors() code WP 6.5.2

public function errors() {
	return is_wp_error( $this->errors ) ? $this->errors : false;
}