WordPress at a glance
function is not described

WP_Theme::errors() public WP 3.4.0

Returns errors property.

{} It's a 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.

Code of WP_Theme::errors() WP 5.5.1

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