bulk_edit_custom_box
Fires once for each column in Bulk Edit mode.
Usage
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(string)
- Name of the column to edit.
- $post_type(string)
- The post type slug.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
bulk_edit_custom_box
wp-admin/includes/class-wp-posts-list-table.php 2065
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );