WP_List_Table::display_tablenav()protectedWP 3.1.0

Generates the table navigation above or below the table

Метод класса: WP_List_Table{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->display_tablenav( $which );
$which(строка) (обязательный)
The location of the navigation: Either 'top' or 'bottom'.

Список изменений

С версии 3.1.0 Введена.

Код WP_List_Table::display_tablenav() WP 6.5.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
}