bulk_edit_custom_box

動作鉤子
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type )
引數
  • (string) $column_name Name of the column to edit.
    Required:
  • (string) $post_type The post type slug.
    Required:
定義位置
相關勾子
quick_edit_custom_boxget_custom_logomanage_media_custom_columnedit_custom_thumbnail_sizesedit_form_top
相關方法
bulk_edit_postsget_custom_logothe_block_editor_meta_boxespost_custom_meta_boxwp_get_custom_csswp_get_custom_css_post
引入
2.7.0
棄用
-

bulk_edit_custom_box: 這是WordPress中的一個動作鉤子,允許開發者在文章、頁面或自定義文章型別的批量編輯框中新增自定義欄位。bulk_edit_custom_box動作鉤子在批量編輯框顯示時被觸發,開發者可以用它來向編輯框新增自定義欄位。這對於在批量編輯過程中新增自定義資料或功能很有用。

在批量編輯模式下,每一列都會發生一次觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );

常見問題

FAQs
檢視更多 >