WP_MS_Users_List_Table::get_columns()publicWP 1.0

Method of the class: WP_MS_Users_List_Table{}

Hooks from the method

Return

String[]. Array of column titles keyed by their column name.

Usage

$WP_MS_Users_List_Table = new WP_MS_Users_List_Table();
$WP_MS_Users_List_Table->get_columns();

WP_MS_Users_List_Table::get_columns() code WP 6.6.2

public function get_columns() {
	$users_columns = array(
		'cb'         => '<input type="checkbox" />',
		'username'   => __( 'Username' ),
		'name'       => __( 'Name' ),
		'email'      => __( 'Email' ),
		'registered' => _x( 'Registered', 'user' ),
		'blogs'      => __( 'Sites' ),
	);
	/**
	 * Filters the columns displayed in the Network Admin Users list table.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param string[] $users_columns An array of user columns. Default 'cb', 'username',
	 *                                'name', 'email', 'registered', 'blogs'.
	 */
	return apply_filters( 'wpmu_users_columns', $users_columns );
}