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



update_termmeta_cache › WordPress Function

Desde4.4.0
Obsoleton/a
update_termmeta_cache ( $term_ids )
Parâmetros:
  • (array) $term_ids List of term 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 list of term IDs.

Performs SQL query to retrieve all metadata for the terms matching $term_ids and stores them in the cache. Subsequent calls to get_term_meta() will not need to query the database.


Fonte

function update_termmeta_cache( $term_ids ) {
	return update_meta_cache( 'term', $term_ids );
}