WP_MS_Sites_List_Table::column_default()publicWP 4.3.0

Handles output for the default column.

Method of the class: WP_MS_Sites_List_Table{}

Hooks from the method

Return

null. Nothing (null).

Usage

$WP_MS_Sites_List_Table = new WP_MS_Sites_List_Table();
$WP_MS_Sites_List_Table->column_default( $item, $column_name );
$item(array) (required)
Current site.
$column_name(string) (required)
Current column name.

Changelog

Since 4.3.0 Introduced.
Since 5.9.0 Renamed $blog to $item to match parent class for PHP 8 named parameter support.

WP_MS_Sites_List_Table::column_default() code WP 6.5.2

public function column_default( $item, $column_name ) {
	// Restores the more descriptive, specific name for use within this method.
	$blog = $item;

	/**
	 * Fires for each registered custom column in the Sites list table.
	 *
	 * @since 3.1.0
	 *
	 * @param string $column_name The name of the column to display.
	 * @param int    $blog_id     The site ID.
	 */
	do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] );
}