WP_Users_List_Table::get_columns()

Get a list of columns for the list table.


Description Description


Return Return

(array) Array in which the key is the ID of the column, and the value is the description.


Top ↑

Source 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'    => __( 'Posts' )
		);

		if ( $this->is_site_users )
			unset( $c['posts'] );

		return $c;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.