WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/manage users columns

Description

manage_users_columns is a filter applied to the columns on the manage users screen.

Parameters

$columns
(array) (required) An array of column name ⇒ label. The name is passed to functions to identify the column. The label is shown as the column header.
Default: None

Example

Add an extra column to the users table:

function add_extra_user_column($columns) {
    return array_merge( $columns, 
              array('foo' => __('Bar')) );
}
add_filter('manage_users_columns' , 'add_extra_user_column');
This page is marked as incomplete. You can help Codex by expanding it.