do_action( 'bulk_edit_custom_box', string $column_name , string $post_type )
Fires once for each column in Bulk Edit mode.
Contents
Parameters
-
$column_name
string -
Name of the column to edit.
-
$post_type
string -
The post type slug.
More Information
bulk_edit_custom_box
is an action that lets plugin print inputs for custom columns when bulk editing. This action is called one time for each custom column. Custom columns are added with the manage_edit-${post_type}_columns filter. To save the data from the custom inputs, hook the save_post action.
Note that the action function is passed neither the post ID nor any existing value for the column.
See quick_edit_custom_box for basis.
Source
File: wp-admin/includes/class-wp-posts-list-table.php
.
View all references
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
(From Codex)
Creating Inputs
Reuse function display_custom_quickedit_book from quick_edit_custom_box
(From Codex)
Saving Data
Unlike quick edit’s data saving process, we’ll save via Ajax calls.
Top ↑
Feedback
Nonsense, you can use save_post hook, as stated in the More Information section above. — By Marian Kadanka —
(From Codex)
Calling Ajax
Our updated scripts/admin_edit.js from quick_edit_custom_box.