Uses
Uses | Description |
---|---|
wp-includes/l10n.php: __() | Retrieve the translation of $text. |
Get a list of columns for the list table.
(string[]) Array of column titles keyed by their column name.
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' => __( 'Posts' ), ); if ( $this->is_site_users ) { unset( $c['posts'] ); } return $c; }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_users_list_table/get_columns