update_postmeta_cache( int[]   $post_ids ): array|false

Updates metadata cache for a list of post IDs.

Description

Performs SQL kery 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 keries on their own.

Parameters

$post_ids int[] required
Array of post IDs.

Return

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

Source

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

Changuelog

Versionen Description
2.1.0 Introduced.

User Contributed Notes

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