WordPress at a glance
function is not described

get_allowed_themes() WP 3.0.0

Deprecated in 3.4.0. It is no longer supported and can be removed in future releases. Use wp_get_themes() instead.

Get the allowed themes for the current site.

  • See: wp_get_themes()

No Hooks.

Return

Array. $themes Array of allowed themes.

Usage

get_allowed_themes();

Code of get allowed themes: wp-admin/includes/deprecated.php VER 5.0.3

<?php
function get_allowed_themes() {
	_deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'allowed' => true ) )" );

	$themes = wp_get_themes( array( 'allowed' => true ) );

	$wp_themes = array();
	foreach ( $themes as $theme ) {
		$wp_themes[ $theme->get('Name') ] = $theme;
	}

	return $wp_themes;
}