wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



update_postmeta_cache › WordPress Function

Desde2.1.0
Obsoleton/a
update_postmeta_cache ( $post_ids )
Parâmetros:
  • (int[]) $post_ids Array of post IDs.
    Required: Yes
Retorna:
  • (array|false) An array of metadata on success, false if there is nothing to update.
Definido em:
Codex:

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.


Fonte

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