update_termmeta_cache()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
update_termmeta_cache( array $term_ids ): array|false
Описание
Выполняет SQL-запрос, чтобы получить все метаданные терминов, соответствующих $term_ids, и сохраняет их в кэше.
Последующие вызовы get_term_meta() уже не будут обращаться к базе данных.
Оригинал (английский)
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.
Параметры
$term_ids
array
обязательный
Возвращаемое значение
array|false
Исходный код
wp-includes/taxonomy.php:1496
function update_termmeta_cache( $term_ids ) {
return update_meta_cache( 'term', $term_ids );
}
История изменений
| Версия | Описание |
|---|---|
| 4.4.0 | Introduced. |

