Title: get_broken_themes
Published: April 25, 2014
Last modified: May 20, 2026

---

# get_broken_themes(): array

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#see-also)
 * [Return](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#wp--skip-link--target)

This function has been deprecated since 3.4.0. Use [wp_get_themes()](https://developer.wordpress.org/reference/functions/wp_get_themes/)
instead.

Retrieves a list of broken themes.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#see-also)󠁿

 * [wp_get_themes()](https://developer.wordpress.org/reference/functions/wp_get_themes/)

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#return)󠁿

 array

## 󠀁[Source](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#source)󠁿

    ```php
    function get_broken_themes() {
    	_deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" );

    	$themes = wp_get_themes( array( 'errors' => true ) );
    	$broken = array();
    	foreach ( $themes as $theme ) {
    		$name = $theme->get('Name');
    		$broken[ $name ] = array(
    			'Name' => $name,
    			'Title' => $name,
    			'Description' => $theme->errors()->get_error_message(),
    		);
    	}
    	return $broken;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/deprecated.php#L1037)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/deprecated.php#L1037-L1051)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_get_themes()](https://developer.wordpress.org/reference/functions/wp_get_themes/)`wp-includes/theme.php` |

Returns an array of [WP_Theme](https://developer.wordpress.org/reference/classes/wp_theme/) objects based on the arguments.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_broken_themes/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Deprecated. Use [wp_get_themes()](https://developer.wordpress.org/reference/functions/wp_get_themes/)  | 
| [1.5.0](https://developer.wordpress.org/reference/since/1.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_broken_themes%2F)
before being able to contribute a note or feedback.