{$taxonomy}_edit_form

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

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

在所有分類的“Edit Term”表單末尾觸發。

鉤子名稱的動態部分$taxonom引用了分類slug。

可能的鉤子名稱包括:

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

常見問題

FAQs
檢視更多 >