Switch language

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




update_term_cache [ WordPress Function ]

update_term_cache ( $terms, $taxonomy = '' )
Parameters:
  • (array) $terms List of Term objects to change
  • (string) $taxonomy Optional. Update Term to this taxonomy in cache
Defined at:



Updates Terms to Taxonomy in cache.

Source


<?php
function update_term_cache($terms$taxonomy '') {
    foreach ( (array) 
$terms as $term ) {
        
$term_taxonomy $taxonomy;
        if ( empty(
$term_taxonomy) )
            
$term_taxonomy $term->taxonomy;

        
wp_cache_add($term->term_id$term$term_taxonomy);
    }
}
?>

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