Switch language

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




global_terms_enabled [ WordPress Function ]

global_terms_enabled ( No parameters )
Returns:
  • (bool) True if multisite and global terms enabled
Defined at:



Whether global terms are enabled.

Source


<?php
function global_terms_enabled() {
    if ( ! 
is_multisite() )
        return 
false;

    static 
$global_terms null;
    if ( 
is_null$global_terms ) ) {
        
$filter apply_filters'global_terms_enabled'null );
        if ( ! 
is_null$filter ) )
            
$global_terms = (bool) $filter;
        else
            
$global_terms = (bool) get_site_option'global_terms_enabled'false );
    }
    return 
$global_terms;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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