update_postmeta_cache() – Updates metadata cache for list of post IDs.

You appear to be a bot. Output may be restricted

Description

Updates metadata cache for a 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.

Usage

$array|false = update_postmeta_cache( $post_ids );

Parameters

$post_ids
( int[] ) required – Array of post IDs.

Returns

array|false An array of metadata on success, false if there is nothing to update.

Source

File name: wordpress/wp-includes/post.php
Lines:

1 to 3 of 3
function update_postmeta_cache( $post_ids ) {
  return update_meta_cache( 'post', $post_ids );
}
 

 View on GitHub View on Trac