WordPress at a glance
function is not described

WP_Theme::offsetExists() public WP 3.4.0

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

{} It's a method of the class: WP_Theme{}

No Hooks.


true|false. Nothing.


$WP_Theme = new WP_Theme();
$WP_Theme->offsetExists( $offset );
$offset(mixed) (required)


Since 3.4.0 Introduced.

Code of WP_Theme::offsetExists() WP 5.7.2

public function offsetExists( $offset ) {
	static $keys = array(
		'Author Name',
		'Author URI',
		'Template Files',
		'Stylesheet Files',
		'Template Dir',
		'Stylesheet Dir',
		'Theme Root',
		'Theme Root URI',
		'Parent Theme',

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