clean_term_cache

動作鉤子
do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy )
引數
  • (array) $ids An array of term IDs.
    Required:
  • (string) $taxonomy Taxonomy slug.
    Required:
  • (bool) $clean_taxonomy Whether or not to clean taxonomy-wide caches
    Required:
定義位置
相關勾子
clean_site_cacheclean_user_cacheclean_object_term_cacheclean_network_cacheclean_taxonomy_cache
相關方法
clean_term_cacheclean_user_cacheclean_category_cacheclean_object_term_cachewp_clean_themes_cacheclean_post_cache
引入
4.5.0
棄用
-

clean_term_cache – 這是WordPress的一個函式,用來清理特定術語的快取: 該函式用於確保最新的術語資料總是可用的。

在每個分類法的術語快取被清理後,觸發一次。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy );
do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy );
do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy );

常見問題

FAQs
檢視更多 >