WordPress at Your Fingertips
function is not described

WP_MS_Sites_List_Table::column_blogname() public WP 4.3.0

Handles the site name 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_blogname( $blog );
$blog(array) (required)
Current site.

Notes

  • Global. String. $mode List table view mode.

Changelog

Since 4.3.0 Introduced.

Code of WP_MS_Sites_List_Table::column_blogname() WP 5.8.2

<?php
public function column_blogname( $blog ) {
	global $mode;

	$blogname = untrailingslashit( $blog['domain'] . $blog['path'] );

	?>
	<strong>
		<a href="<?php echo esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo $blogname; ?></a>
		<?php $this->site_states( $blog ); ?>
	</strong>
	<?php
	if ( 'list' !== $mode ) {
		switch_to_blog( $blog['blog_id'] );
		echo '<p>';
		printf(
			/* translators: 1: Site title, 2: Site tagline. */
			__( '%1$s &#8211; %2$s' ),
			get_option( 'blogname' ),
			'<em>' . get_option( 'blogdescription' ) . '</em>'
		);
		echo '</p>';
		restore_current_blog();
	}
}