Get the allowed themes for the current site.
Description
See also
Source
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;
}
Changelog
Version | Description |
---|---|
3.4.0 | Use wp_get_themes() |
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.