WP_Users_List_Table::display_rows
Generates the list table rows.
Method of the class: WP_Users_List_Table{}
No Hooks.
Returns
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() WP Users List Table::display rows code WP 7.0
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 );
}
}