WP_MS_Sites_List_Table::column_cb() – Handles the checkbox column output.
You appear to be a bot. Output may be restricted
Description
Handles the checkbox column output.
Usage
WP_MS_Sites_List_Table::column_cb( $item );
Parameters
- $item
- ( array ) required – Current site.
Returns
void
Source
File name: wordpress/wp-admin/includes/class-wp-ms-sites-list-table.php
Lines:
1 to 17 of 17
public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $blog = $item; 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; }