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.


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.


<?php get_themes() ?>



Return Values

Theme list with theme data.


  • 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.


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