WordPress at Your Fingertips
function is not described

WP_MS_Sites_List_Table::column_cb() public WP 4.3.0

Handles the checkbox column output.

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

No Hooks.

Return

null. Nothing.

Usage

$WP_MS_Sites_List_Table = new WP_MS_Sites_List_Table();
$WP_MS_Sites_List_Table->column_cb( $blog );
$blog(array) (required)
Current site.

Changelog

Since 4.3.0 Introduced.

Code of WP_MS_Sites_List_Table::column_cb() WP 5.8.2

<?php
public function column_cb( $blog ) {
	if ( ! is_main_site( $blog['blog_id'] ) ) :
		$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
		?>
		<label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>">
			<?php
			/* translators: %s: Site URL. */
			printf( __( 'Select %s' ), $blogname );
			?>
		</label>
		<input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ); ?>" />
		<?php
	endif;
}