WP_MS_Users_List_Table::column_default() WordPress Method

This is the default column output method for the WP_MS_Users_List_Table class. This method is responsible for generating the content for each row in the table. The method accepts a single parameter, which is the user object for the current row. The method first checks if the user has a display name set. If not, it uses the user's login name. Next, it checks if the user has a website set. If so, it generates a link to the website. Finally, it outputs the user's email address.

WP_MS_Users_List_Table::column_default( WP_User $item, string $column_name ) #

Handles the default column output.


Parameters

$item

(WP_User)(Required)The current WP_User object.

$column_name

(string)(Required)The current column name.


Top ↑

Source

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

	public function column_default( $item, $column_name ) {
		/** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
		echo apply_filters(
			'manage_users_custom_column',
			'', // Custom column output. Default empty.
			$column_name,
			$item->ID // User ID.
		);
	}


Top ↑

Changelog

Changelog
VersionDescription
5.9.0Renamed $user 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.