Switch language

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




get_object_term_cache [ WordPress Function ]

get_object_term_cache ( $id, $taxonomy )
Parameters:
  • (int|array) $id Term object ID
  • (string) $taxonomy Taxonomy Name
Uses:
Returns:
  • (bool|array) Empty array if $terms found, but not $taxonomy. False if nothing is in cache for $taxonomy and $id.
Defined at:



Retrieves the taxonomy relationship to the term object id.

Source


<?php
function &get_object_term_cache($id$taxonomy) {
    
$cache wp_cache_get($id"{$taxonomy}_relationships");
    return 
$cache;
}
?>

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