WP_Theme::__isset
__isset() magic method for properties formerly returned by current_theme_info()
Method of the class: WP_Theme{}
No Hooks.
Returns
true|false. Whether the given property is set.
Usage
$WP_Theme = new WP_Theme(); $WP_Theme->__isset( $offset );
- $offset(string) (required)
- Property to check if set.
Changelog
| Since 3.4.0 | Introduced. |
WP_Theme::__isset() WP Theme:: isset code WP 6.9.1
public function __isset( $offset ) {
static $properties = array(
'name',
'title',
'version',
'parent_theme',
'template_dir',
'stylesheet_dir',
'template',
'stylesheet',
'screenshot',
'description',
'author',
'tags',
'theme_root',
'theme_root_uri',
);
return in_array( $offset, $properties, true );
}