首页 WordPress函数大全 clean_term_cache()

clean_term_cache()

2020-05-01 / 5678阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

clean_term_cache( int|int[] $ids, string $taxonomy = '', bool $clean_taxonomy = true )

Will remove all of the term ids from the cache.

描述

参数

$ids

(int|int[])
(Required)
Single or array of term IDs.

$taxonomy

(string)
(Optional)
Taxonomy slug. Can be empty, in which case the taxonomies of the passed term IDs will be used.

Default value: ''

$clean_taxonomy

(bool)
(Optional)
Whether to clean taxonomy wide caches (true), or just individual term object caches (false).

Default value: true

大家谈论
    我的见解