{$taxonomy}_pre_edit_form

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

{$taxonomy}_pre_edit_form: 這是一個WordPress的動作鉤子,允許開發者在編輯分類表顯示之前執行動作。和{$taxonomy}_add_form鉤子一樣,這個鉤子的名字是動態的,取決於分類名稱。

在所有分類法的”Edit Term”表單前觸發。

鉤子名稱的動態部分,$taxonomy,指的是分類標準。

可能的鉤子名稱包括:

  • category_pre_edit_form
  • post_tag_pre_edit_form
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>

常見問題

FAQs
檢視更多 >