get_allowed_themes() – Get the allowed themes for the current site.
You appear to be a bot. Output may be restricted
Description
Get the allowed themes for the current site.
Usage
$WP_Theme[] = get_allowed_themes();
Parameters
Returns
WP_Theme[] Array of WP_Theme objects keyed by their name.
Source
File name: wordpress/wp-admin/includes/deprecated.php
Lines:
1 to 12 of 12
function get_allowed_themes() { _deprecated_function( get_allowed_themes, '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; }