Switch language

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




update_postmeta_cache [ WordPress Function ]

update_postmeta_cache ( $post_ids )
Parameters:
  • (array) $post_ids List of post IDs.
Uses:
  • $wpdb
Returns:
  • (bool|array) Returns false if there is nothing to update or an array of metadata.
Defined at:



Updates metadata cache for list of post IDs.

Performs SQL query to retrieve the metadata for the post IDs and updates the metadata cache for the posts. Therefore, the functions, which call this function, do not need to perform SQL queries on their own.

Source


<?php
function update_postmeta_cache($post_ids) {
    return 
update_meta_cache('post'$post_ids);
}
?>

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