Action hook 'bulk_edit_custom_box'

in WP Core File wp-admin/includes/class-wp-posts-list-table.php at line 2072

View Source

bulk_edit_custom_box

Action Hook
Description
Fires once for each column in Bulk Edit mode.

Hook Information

File Location wp-admin/includes/class-wp-posts-list-table.php View on GitHub
Hook Type Action
Line Number 2072

Hook Parameters

Type Name Description
string $column_name Name of the column to edit.
string $post_type The post type slug.

Usage Examples

Basic Usage
<?php
// Hook into bulk_edit_custom_box
add_action('bulk_edit_custom_box', 'my_custom_function', 10, 2);

function my_custom_function($column_name, $post_type) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/class-wp-posts-list-table.php:2072 - How this hook is used in WordPress core
<?php
2067  					 * @since 2.7.0
2068  					 *
2069  					 * @param string $column_name Name of the column to edit.
2070  					 * @param string $post_type   The post type slug.
2071  					 */
2072  					do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );
2073  				} else {
2074  
2075  					/**
2076  					 * Fires once for each column in Quick Edit mode.
2077  					 *

PHP Documentation

<?php
/**
					 * Fires once for each column in Bulk Edit mode.
					 *
					 * @since 2.7.0
					 *
					 * @param string $column_name Name of the column to edit.
					 * @param string $post_type   The post type slug.
					 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/class-wp-posts-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.