WP_MS_Users_List_Table::column_default
Handles the default column output.
Method of the class: WP_MS_Users_List_Table{}
Hooks from the method
Returns
null
. Nothing (null).
Usage
$WP_MS_Users_List_Table = new WP_MS_Users_List_Table(); $WP_MS_Users_List_Table->column_default( $item, $column_name );
- $item(WP_User) (required)
- The current WP_User object.
- $column_name(string) (required)
- The current column name.
Changelog
Since 4.3.0 | Introduced. |
Since 5.9.0 | Renamed $user to $item to match parent class for PHP 8 named parameter support. |
WP_MS_Users_List_Table::column_default() WP MS Users List Table::column default code WP 6.8.1
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 */ $column_output = apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID ); /** * Filters the display output of custom columns in the Network Users list table. * * @since 6.8.0 * * @param string $output Custom column output. Default empty. * @param string $column_name Name of the custom column. * @param int $user_id ID of the currently-listed user. */ echo apply_filters( 'manage_users-network_custom_column', $column_output, $column_name, $user->ID ); }