WP_List_Table::display_tablenav() – Generate the table navigation above or below the table

You appear to be a bot. Output may be restricted

Description

Generates the table navigation above or below the table

Usage

WP_List_Table::display_tablenav( $which );

Parameters

$which
( string ) required

Returns

void

Source

File name: wordpress/wp-admin/includes/class-wp-list-table.php
Lines:

1 to 21 of 21
  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->WP_List_Table::has_items() ) : ?>
		<div class="alignleft actions bulkactions">
			<?php $this->WP_List_Table::bulk_actions( $which ); ?>
		</div>
			<?php
    endif;
    $this->WP_List_Table::extra_tablenav( $which );
    $this->WP_List_Table::pagination( $which );
    ?>

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

 View on GitHub View on Trac