WP_Theme::offsetExists( mixed $offset )

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

Parameters Parameters


(mixed) (Required)

Top ↑

Return Return


Top ↑

Source Source

File: wp-includes/class-wp-theme.php

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

Top ↑

Changelog Changelog

Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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