Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_allowed_themes [ WordPress Function ]

get_allowed_themes ( No parameters )
See:
Returns:
  • (array) $themes Array of allowed themes.
Defined at:



Get the allowed themes for the current blog.

Source


<?php
function get_allowed_themes() {
    
_deprecated_function__FUNCTION__'3.4'"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;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics