wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



update_postmeta_cache › WordPress Function

Seit2.1.0
Veraltetn/v
update_postmeta_cache ( $post_ids )
Parameter:
  • (int[]) $post_ids Array of post IDs.
    Erforderlich: Ja
Gibt zurück:
  • (array|false) An array of metadata on success, false if there is nothing to update.
Definiert in:
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.


Quellcode

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