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 Theme::errors WP 5.6
public function errors() {
return is_wp_error( $this->errors ) ? $this->errors : false;
}