WordPress action hook · part of WordPress core
bulk_edit_custom_box
A WordPress core action that 7 plugins also fire themselves, running on 220K+ sites between them.
“Fires once for each column in Bulk Edit mode.”
How to use bulk_edit_custom_box
It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'bulk_edit_custom_box', function( $column_name, $post_type ) {
// Your code runs here.
}, 10, 2 );Argument names come from Download Monitor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
7 plugins that fire bulk_edit_custom_box
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Download Monitor80,000+ installs
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type )src/Admin/class-dlm-admin-list-table.php:1908 -
Media Library Assistant70,000+ installs
do_action( 'bulk_edit_custom_box', $language_column, 'attachment' )includes/class-mla-polylang-support.php:2003 -
Site Reviews60,000+ installs
do_action( 'bulk_edit_custom_box', $columnName, glsr()->post_type )plugin/Overrides/ReviewsListTable.php:67 -
Media Library Helper10,000+ installs
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type )lib/Admin/Extended_Media_List_Table.php:153 -
Admin Posts Grid40+ installs
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type )includes/class-wp-posts-list-grid.php:2152 -
Admin Live Search20+ installs
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type )admin/admin-live-search-post-table.php:1859 -
Enrove FoliosFewer than 10 installs
do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type )list/list-table.php:941
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.