W3cubDocs

/WordPress

WP_List_Table::single_row( object|array $item )

Generates content for a single row of the table.

Parameters

$itemobject|arrayrequired
The current item

More Information

This echos a single item (from the items property) to the page. Generally, you don’t need to call this explicitly as it is handled automatically on display().

Source

public function single_row( $item ) {
	echo '<tr>';
	$this->single_row_columns( $item );
	echo '</tr>';
}

Changelog

Version Description
3.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/single_row