update_postmeta_cache


update_postmeta_cache ( $post_ids )

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

Description

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.

Related Functions

update_sitemeta_cache, update_meta_cache, update_post_cache, update_post_caches, update_termmeta_cache

Top Google Results

User discussions

wpseek mobile