WP_Users_List_Table::display_rows()publicWP 3.1.0

Generates the list table rows.

Method of the class: WP_Users_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Users_List_Table = new WP_Users_List_Table();
$WP_Users_List_Table->display_rows();

Changelog

Since 3.1.0 Introduced.

WP_Users_List_Table::display_rows() code WP 6.6.2

public function display_rows() {
	// Query the post counts for this page.
	if ( ! $this->is_site_users ) {
		$post_counts = count_many_users_posts( array_keys( $this->items ) );
	}

	foreach ( $this->items as $userid => $user_object ) {
		echo "\n\t" . $this->single_row( $user_object, '', '', isset( $post_counts ) ? $post_counts[ $userid ] : 0 );
	}
}