WordPress at Your Fingertips
function is not described

WP_Media_List_Table::column_cb() public WP 4.3.0

Handles the checkbox column output.

{} It's a method of the class: WP_Media_List_Table{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Media_List_Table = new WP_Media_List_Table();
$WP_Media_List_Table->column_cb( $post );
$post(WP_Post) (required)
The current WP_Post object.

Changelog

Since 4.3.0 Introduced.

Code of WP_Media_List_Table::column_cb() WP 5.8.2

<?php
public function column_cb( $post ) {
	if ( current_user_can( 'edit_post', $post->ID ) ) {
		?>
		<label class="screen-reader-text" for="cb-select-<?php echo $post->ID; ?>">
			<?php
			/* translators: %s: Attachment title. */
			printf( __( 'Select %s' ), _draft_or_post_title() );
			?>
		</label>
		<input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" />
		<?php
	}
}