WordPress at Your Fingertips
function is not described

WP_Terms_List_Table::single_row() public WP 1.0

{} It's a method of the class: WP_Terms_List_Table{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Terms_List_Table = new WP_Terms_List_Table();
$WP_Terms_List_Table->single_row( $tag, $level );
$tag(WP_Term) (required)
Term object.
$level(int)
-

Notes

  • Global. String. $taxonomy

Code of WP_Terms_List_Table::single_row() WP 5.8.1

public function single_row( $tag, $level = 0 ) {
	global $taxonomy;
	$tag = sanitize_term( $tag, $taxonomy );

	$this->level = $level;

	if ( $tag->parent ) {
		$count = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) );
		$level = 'level-' . $count;
	} else {
		$level = 'level-0';
	}

	echo '<tr id="tag-' . $tag->term_id . '" class="' . $level . '">';
	$this->single_row_columns( $tag );
	echo '</tr>';
}