update_post_caches


update_post_caches ( $posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true )

Parameters:
  • (WP_Post[]) posts Array of post objects (passed by reference).
  • (string) post_type Optional. Post type. Default 'post'.
  • (bool) update_term_cache Optional. Whether to update the term cache. Default true.
  • (bool) update_meta_cache Optional. Whether to update the meta cache. Default true.
Defined at:

Description

Updates post, term, and metadata caches for a list of post objects.

Related Functions

update_post_cache, update_postmeta_cache, update_site_cache, update_post_parent_caches, update_post_author_caches

Top Google Results

User discussions

wpseek mobile