Switch language

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




update_comment_cache [ WordPress Function ]

update_comment_cache ( $comments )
Parameters:
  • (array) $comments Array of comment row objects
Defined at:



Updates the comment cache of given comments.

Will add the comments in $comments to the cache. If comment ID already exists in the comment cache then it will not be updated. The comment is added to the cache using the comment group with the key using the ID of the comments.

Source


<?php
function update_comment_cache($comments) {
    foreach ( (array) 
$comments as $comment )
        
wp_cache_add($comment->comment_ID$comment'comment');
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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