WP_List_Table::display_tablenav() protected WP 3.1.0
Generates the table navigation above or below the table
{} Это метод класса: WP_List_Table{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->display_tablenav( $which );
- $which(строка) (обязательный)
- -
Список изменений
С версии 3.1.0 | Введена. |
Код WP_List_Table::display_tablenav() WP List Table::display tablenav WP 5.6.2
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
}