WP_Users_List_Table::get_columns() WordPress Method
The WP_Users_List_Table::get_columns() method is used to get the columns for the users list table.
WP_Users_List_Table::get_columns() #
Get a list of columns for the list table.
Return
(string[]) Array of column titles keyed by their column name.
Source
File: wp-admin/includes/class-wp-users-list-table.php
public function get_columns() { $c = array( 'cb' => '<input type="checkbox" />', 'username' => __( 'Username' ), 'name' => __( 'Name' ), 'email' => __( 'Email' ), 'role' => __( 'Role' ), 'posts' => _x( 'Posts', 'post type general name' ), ); if ( $this->is_site_users ) { unset( $c['posts'] ); } return $c; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |