Returns errors property.
Source
public function errors() {
return is_wp_error( $this->errors ) ? $this->errors : false;
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
CARVIEW |
Returns errors property.
Returns WP_Error object with error information. If there isn’t any error information then it returns false.
public function errors() {
return is_wp_error( $this->errors ) ? $this->errors : false;
}
Uses | Description |
---|---|
is_wp_error()wp-includes/load.php | Checks whether the given variable is a WordPress Error. |
Used by | Description |
---|---|
wp_get_theme_preview_path()wp-includes/theme-previews.php | Filters the blog option to return the path for the previewed theme. |
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. |
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.