bulk_edit_custom_box
Fires once for each column in Bulk Edit mode.
Использование
add_action( 'bulk_edit_custom_box', 'wp_kama_bulk_edit_custom_box_action', 10, 2 ); /** * Function for `bulk_edit_custom_box` action-hook. * * @param string $column_name Name of the column to edit. * @param string $post_type The post type slug. * * @return void */ function wp_kama_bulk_edit_custom_box_action( $column_name, $post_type ){ // action... }
- $column_name(строка)
- Name of the column to edit.
- $post_type(строка)
- The post type slug.
Список изменений
С версии 2.7.0 | Введена. |
Где вызывается хук
bulk_edit_custom_box
wp-admin/includes/class-wp-posts-list-table.php 2059
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );