Switch language

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




update_post_cache [ WordPress Function ]

update_post_cache ( $posts )
Parameters:
  • (array) $posts Array of post objects
Defined at:



Updates posts in cache.

Source


<?php
function update_post_cache( &$posts ) {
    if ( ! 
$posts )
        return;

    foreach ( 
$posts as $post )
        
wp_cache_add$post->ID$post'posts' );
}
?>

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