WP_Theme::__isset()publicWP 3.4.0

__isset() magic method for properties formerly returned by current_theme_info()

Method of the class: WP_Theme{}

No Hooks.

Return

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() code WP 6.5.2

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 );
}