WP_Theme::__isset()publicWP 3.4.0

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

Метод класса: WP_Theme{}

Хуков нет.

Возвращает

true|false. Whether the given property is set.

Использование

$WP_Theme = new WP_Theme();
$WP_Theme->__isset( $offset );
$offset(строка) (обязательный)
Property to check if set.

Список изменений

С версии 3.4.0 Введена.

Код WP_Theme::__isset() 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 );
}