clean_object_term_cache [ WordPress Function ]
clean_object_term_cache ( $object_ids, $object_type )
| Parameters: |
|
| Uses: | |
| See: | |
| Defined at: |
|
Soorgelijke functies: get_object_term_cache, clean_term_cache, update_object_term_cache, clean_category_cache, clean_post_cache
Removes the taxonomy relationship to terms from the cache.
Will remove the entire taxonomy relationship containing term $object_id. The term IDs have to exist within the taxonomy $object_type for the deletion to take place.
Source
<?php
function clean_object_term_cache($object_ids, $object_type) {
if ( !is_array($object_ids) )
$object_ids = array($object_ids);
foreach ( $object_ids as $id )
foreach ( get_object_taxonomies($object_type) as $taxonomy )
wp_cache_delete($id, "{$taxonomy}_relationships");
do_action('clean_object_term_cache', $object_ids, $object_type);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- clean_object_term_cache Wordpress hook details -- Adam Brown ...
clean_object_term_cache. WordPress version history for clean_object_term_cache. This database has information for all major versions from WP 1.2.1 through ...
adambrown.info - clean_object_term_cache | A HitchHackers guide through WordPress
Feb 11, 2011 ... Will remove the entire taxonomy relationship containing term $object_id. The term IDs have to exist within the taxonomy $object_type for the ...
hitchhackerguide.com - clean_object_term_cache() WordPress function reference ...
Removes the taxonomy relationship to terms from the cache.
queryposts.com - clean_object_term_cache (WordPress Function) - WPSeek.com
WordPress lookup for clean_object_term_cache, a WordPress Function. wpseek. com is a WordPress-centric search tool for developers and theme authors.
wpseek.com