On this page
WP_Theme::errors(): WP_Error|false
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. View all references
public function errors() {
return is_wp_error( $this->errors ) ? $this->errors : false;
}
Related
Uses
| Uses | Description |
|---|---|
| is_wp_error() wp-includes/load.php | Checks whether the given variable is a WordPress Error. |
Used By
| Used By | Description |
|---|---|
| WP_Theme::get_post_templates() wp-includes/class-wp-theme.php | Returns the theme’s post templates. |
| wp_get_themes() wp-includes/theme.php | Returns an array of WP_Theme objects based on the arguments. |
| WP_Theme::get_stylesheet_directory() wp-includes/class-wp-theme.php | Returns the absolute path to the directory of a theme’s “stylesheet” files. |
| WP_Theme::exists() wp-includes/class-wp-theme.php | Determines whether the theme exists. |
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