WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get themes


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.

Contents

Description

Retrieve list of themes with theme data in theme directory.

The theme is broken if it doesn't have a parent theme and is missing either style.css or index.php. If the theme has a parent theme, it is broken if it is missing style.css; index.php is optional. The broken theme list is saved in the $wp_broken_themes global, which is displayed on the theme list in the administration panels.

Usage

<?php get_themes() ?>

Parameters

None.

Return Values

(array) 
Theme list with theme data.

Notes

  • Uses global: (array) $wp_themes holds working themes list.

Change Log

Since: 1.5.0. Deprecated since 3.4.0.

Source File

get_themes() is located in wp-includes/deprecated.php.

Related

See also index of Function Reference and index of Template Tags.