split_shared_term

動作鉤子
do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id, $term_taxonomy->taxonomy )
引數
  • (int) $term_id ID of the formerly shared term.
    Required:
  • (int) $new_term_id ID of the new term created for the $term_taxonomy_id.
    Required:
  • (int) $term_taxonomy_id ID for the term_taxonomy row affected by the split.
    Required:
  • (string) $taxonomy Taxonomy for the split term.
    Required:
定義位置
相關勾子
saved_termedited_termedited_termssite_allowed_themesrest_prepare_theme
相關方法
the_termssanitize_termget_the_termswp_get_split_termwp_insert_termis_term
引入
4.2.0
棄用
-

split_shared_term函式。split_shared_term函式是WordPress的一個函式,它允許將一個共享術語分割成不同分類法的獨立術語: 當一個術語在多個分類法中被共享,而你需要區分每個分類法的術語時,這個函式可以用來解決衝突。

在一個先前共享的分類學術語被分割成兩個獨立的術語之後觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id, $term_taxonomy->taxonomy );
do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id, $term_taxonomy->taxonomy );
do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id, $term_taxonomy->taxonomy );

常見問題

FAQs
檢視更多 >