WP_List_Table::display_tablenav
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 List Table::display tablenav WP 7.1.2
<?php
protected function display_tablenav( $which ) {
if ( 'bottom' === $which && ! $this->has_items() ) {
return;
}
if ( 'top' === $which ) {
wp_nonce_field( 'bulk-' . $this->_args['plural'] );
}
?>
<div class="tablenav <?php echo esc_attr( $which ); ?>">
<?php
$visibility = ' hidden';
if ( $this->has_items() ) {
$visibility = '';
}
?>
<div class="alignleft actions bulkactions<?php echo $visibility; ?>">
<?php $this->bulk_actions( $which ); ?>
</div>
<?php
$this->extra_tablenav( $which );
$this->pagination( $which );
?>
<br class="clear" />
</div>
<?php
}