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

In this article

Handles the default column output.

Parameters

$itemWP_Userrequired
The current WP_User object.
$column_namestringrequired
The current column name.

Source

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

	/** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
	echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
}

Hooks

apply_filters( ‘manage_users_custom_column’, string $output, string $column_name, int $user_id )

Filters the display output of custom columns in the Users list table.

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.