WP_List_Table::display_tablenav()protectedWP 3.1.0

Generates the table navigation above or below the table

Method of the class: WP_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->display_tablenav( $which );
$which(string) (required)
The location of the navigation: Either 'top' or 'bottom'.

Changelog

Since 3.1.0 Introduced.

WP_List_Table::display_tablenav() code WP 6.6.2

<?php
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
}