Automattic\WooCommerce\Internal\Admin\Orders

ListTable::column_cb()publicWC 1.0

Checklist column, used for selecting items for processing by a bulk action.

{} It's a method of the class: ListTable{}

No Hooks.

Return

String.

Usage

$ListTable = new ListTable();
$ListTable->column_cb( $item );
$item(WC_Order) (required)
The order object for the current row.

Code of ListTable::column_cb() WC 7.1.0

public function column_cb( $item ) {
	return sprintf( '<input type="checkbox" name="%1$s[]" value="%2$s" />', esc_attr( $this->_args['singular'] ), esc_attr( $item->get_id() ) );
}