WP_MS_Sites_List_Table::column_cb

Advertisement

Summery Summery

Handles the checkbox column output.

Syntax Syntax

WP_MS_Sites_List_Table::column_cb( array $blog )

Parameters Parameters

$blog

(Required) Current site.

Source Source

File: wp-admin/includes/class-wp-ms-sites-list-table.php

		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;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply