WP_Theme::offsetExists
Method to implement ArrayAccess for keys formerly returned by get_themes()
Method of the class: WP_Theme{}
No Hooks.
Returns
true|false.
Usage
$WP_Theme = new WP_Theme(); $WP_Theme->offsetExists( $offset );
- $offset(mixed) (required)
- .
Changelog
| Since 3.4.0 | Introduced. |
WP_Theme::offsetExists() WP Theme::offsetExists code WP 6.9
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 );
}