Title: get_theme
Published: April 25, 2014
Last modified: August 20, 2026

---

# get_theme( string $theme ): array|null

## In this article

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

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

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

Retrieve theme data.

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

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

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/get_theme/?output_format=md#parameters)󠁿

 `$theme`stringrequired

Theme name.

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

 array|null Null, if theme name does not exist. Theme data, if exists.

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

    ```php
    function get_theme( $theme ) {
    	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme( $stylesheet )' );

    	$themes = get_themes();
    	if ( is_array( $themes ) && array_key_exists( $theme, $themes ) )
    		return $themes[ $theme ];
    	return null;
    }
    ```

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

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

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

Retrieve list of themes with theme data in theme directory.

  | 
| [_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_theme/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Deprecated. Use [wp_get_theme()](https://developer.wordpress.org/reference/functions/wp_get_theme/)  | 
| [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_theme%2F)
before being able to contribute a note or feedback.