WP_Theme::errors() WordPress Method
The WP_Theme::errors() method is a way for themes to report errors to the WordPress administration interface. By default, this method will only report errors to the php error log. However, if the WP_DEBUG and WP_DEBUG_DISPLAY constants are both set to true, this method will also display errors in the browser.
WP_Theme::errors() #
Returns errors property.
Return
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
public function errors() { return is_wp_error( $this->errors ) ? $this->errors : false; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |