update_postmeta_cache( int[] $post_ids )

Updates metadata cache for list of post IDs.

Description Description

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.

Parameters Parameters


(int[]) (Required) Array of post IDs.

Top ↑

Return Return

(array|false) Returns false if there is nothing to update or an array of metadata.

Top ↑

Source Source

File: wp-includes/post.php

function update_postmeta_cache( $post_ids ) {
	return update_meta_cache( 'post', $post_ids );

Top ↑

Changelog Changelog

Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.