wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
get_allowed_themes is deprecated since version 3.4.0!
Alternative: Use
Alternative: Use
get_allowed_themes › WordPress Function
Da3.0.0
Deprecato3.4.0
› get_allowed_themes ( Nessun parametro )
| Vedi: | |
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Get the allowed themes for the current site.
Funzioni correlate: get_site_allowed_themes, wpmu_get_blog_allowedthemes, get_allowed_mime_types, get_broken_themes, get_allowed_block_types
Sorgenti
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;
}