WP_List_Table::display_tablenav( string $which )

Generates the table navigation above or below the table

Parameters

$whichstringrequired
The location of the navigation: Either 'top' or 'bottom'.

More Information

This generates the table navigation above or below the table. Generally, you don’t need to call this explicitly as it is handled in the display() method.

Source

protected function display_tablenav( $which ) {
	if ( 'top' === $which ) {
		wp_nonce_field( 'bulk-' . $this->_args['plural'] );
	}
	?>
<div class="tablenav <?php echo esc_attr( $which ); ?>">

	<?php if ( $this->has_items() ) : ?>
	<div class="alignleft actions bulkactions">
		<?php $this->bulk_actions( $which ); ?>
	</div>
		<?php
	endif;
	$this->extra_tablenav( $which );
	$this->pagination( $which );
	?>

	<br class="clear" />
</div>
	<?php
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.