WP_Theme::offsetGet

SummerySummery

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

Syntax

WP_Theme::offsetGet( mixed $offset )

DescriptionDescription

Author, Author Name, Author URI, and Description did not previously return translated data. We are doing so now as it is safe to do. However, as Name and Title could have been used as the key for get_themes(), both remain untranslated for back compatibility. This means that [‘Name’] is not ideal, and care should be taken to use $theme::display( 'Name' ) to get a properly translated header.

ParametersParameters

$offset

(mixed) (Required)

ReturnReturn

(mixed)

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.4.0 Introduced.
Scroll to Top