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
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. ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.9.0 | Renamed $user to $item to match parent class for PHP 8 named parameter support. |
4.3.0 | Introduced. |