wordpress / latest / classes / wp_theme / errors.html

WP_Theme::errors(): WP_Error|false

Returns errors property.

Return

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

More Information

Returns WP_Error object with error information. If there isn’t any error information then it returns false.

Source

File: wp-includes/class-wp-theme.php. View all references

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

Uses

Uses Description

Changelog

Version Description
3.4.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme/errors