WP_Theme::offsetExists( mixed $offset ): bool

In this article

Method to implement ArrayAccess for keys formerly returned by get_themes()

Parameters

$offsetmixedrequired

Return

bool

Source

#[ReturnTypeWillChange]
public function offsetExists( $offset ) {
	static $keys = array(
		'Name',
		'Version',
		'Status',
		'Title',
		'Author',
		'Author Name',
		'Author URI',
		'Description',
		'Template',
		'Stylesheet',
		'Template Files',
		'Stylesheet Files',
		'Template Dir',
		'Stylesheet Dir',
		'Screenshot',
		'Tags',
		'Theme Root',
		'Theme Root URI',
		'Parent Theme',
	);

	return in_array( $offset, $keys, true );
}

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.