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 ]

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