Automattic\WooCommerce\Internal\Admin\Orders

ListTable::extra_tablenav()protectedWC 1.0

Extra controls to be displayed between bulk actions and pagination.

Method of the class: ListTable{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->extra_tablenav( $which );
$which(string) (required)
Either 'top' or 'bottom'.

ListTable::extra_tablenav() code WC 7.1.1

protected function extra_tablenav( $which ) {
	echo '<div class="alignleft actions">';

	if ( 'top' === $which ) {
		$this->months_filter();
		$this->customers_filter();

		submit_button( __( 'Filter', 'woocommerce' ), '', 'filter_action', false, array( 'id' => 'order-query-submit' ) );
	}

	if ( $this->is_trash && $this->has_items() && current_user_can( 'edit_others_orders' ) ) {
		submit_button( __( 'Empty Trash', 'woocommerce' ), 'apply', 'delete_all', false );
	}

	echo '</div>';
}