WP_MS_Sites_List_Table::column_default() WordPress Method

The WP_MS_Sites_List_Table::column_default() method is used to render the default column value for a site in the Multisite Sites list table.

WP_MS_Sites_List_Table::column_default( array $item, string $column_name ) #

Handles output for the default column.


Parameters

$item

(array)(Required)Current site.

$column_name

(string)(Required)Current column name.


Top ↑

Source

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

	public function column_default( $item, $column_name ) {
		/**
		 * 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, $item['blog_id'] );
	}


Top ↑

Changelog

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.