{$taxonomy}_term_edit_form_top

動作鉤子
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy )
引數
  • (WP_Term) $tag Current taxonomy term object.
    Required:
  • (string) $taxonomy Current $taxonomy slug.
    Required:
定義位置
相關勾子
taxonomy_term_edit_form_tagtaxonomy_term_new_form_tagtaxonomy_pre_edit_formtaxonomy_edit_formtaxonomy_edit_form_fields
相關方法
taxonomy_existsinstall_theme_informationget_taxonomy_templatecomment_form_titletaxonomy_meta_box_sanitize_cb_inputcomment_form
引入
4.5.0
棄用
-

{$taxonomy}_term_edit_form_top: 這是一個WordPress動作鉤子,允許開發者在編輯分類術語表單的頂部新增自定義內容。和{$taxonomy}_add_form鉤子一樣,這個鉤子的名字是動態的,取決於分類名稱。

在“Edit Term”表單的開頭觸發。

此時,已輸出所需的隱藏欄位和隨機數。鉤子名稱的動態部分,$taxonomy,指的是分類標準。

可能的鉤子名稱包括:

  • category_term_edit_form_top
  • post_tag_term_edit_form_top
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );

常見問題

FAQs
檢視更多 >