bulk_edit_custom_box WordPress Action Hook

The bulk_edit_custom_box hook allows you to add custom fields to the Bulk Edit screen in the WordPress admin. This can be useful for adding extra data to be updated in bulk, or for adding a custom interface for updating data in bulk.

do_action( 'bulk_edit_custom_box', string $column_name, string $post_type ) #

Fires once for each column in Bulk Edit mode.


Parameters

$column_name

(string)Name of the column to edit.

$post_type

(string)The post type slug.


Top ↑

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.


Top ↑

Source

File: wp-admin/includes/class-wp-posts-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.