This function has been deprecated. Use wp_get_themes() instead.
get_allowed_themes()
Get the allowed themes for the current site.
Description
See also
Return
(array) $themes Array of allowed themes.
Source
File: wp-admin/includes/deprecated.php
function get_allowed_themes() {
_deprecated_function( __FUNCTION__, 'WP-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;
}
Changelog
Version | Description |
---|---|
WP-3.4.0 | Use wp_get_themes() |
WP-3.0.0 | Introduced. This function has been deprecated. Use wp_get_themes() instead. |