WP_Theme::offsetExists

Advertisement

Summery Summery

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

Syntax Syntax

WP_Theme::offsetExists( mixed $offset )

Parameters Parameters

$offset

(mixed) (Required)

Return Return

(bool)

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.