WP_MS_Sites_List_Table::extra_tablenav() protected WP 5.3.0
Extra controls to be displayed between bulk actions and pagination.
{} Это метод класса: WP_MS_Sites_List_Table{}
Хуки из метода
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->extra_tablenav( $which );
- $which(строка) (обязательный)
- The location of the extra table nav markup: 'top' or 'bottom'.
Список изменений
С версии 5.3.0 | Введена. |
Код WP_MS_Sites_List_Table::extra_tablenav() WP MS Sites List Table::extra tablenav WP 5.6.2
protected function extra_tablenav( $which ) {
?>
<div class="alignleft actions">
<?php
if ( 'top' === $which ) {
ob_start();
/**
* Fires before the Filter button on the MS sites list table.
*
* @since 5.3.0
*
* @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
*/
do_action( 'restrict_manage_sites', $which );
$output = ob_get_clean();
if ( ! empty( $output ) ) {
echo $output;
submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'site-query-submit' ) );
}
}
?>
</div>
<?php
/**
* Fires immediately following the closing "actions" div in the tablenav for the
* MS sites list table.
*
* @since 5.3.0
*
* @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
*/
do_action( 'manage_sites_extra_tablenav', $which );
}