Automattic\WooCommerce\Internal\Admin\Orders

ListTable::column_cb()publicWC 1.0

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

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.

ListTable::column_cb() code WC 9.1.2

<?php
public function column_cb( $item ) {
	ob_start();
	?>
	<input id="cb-select-<?php echo esc_attr( $item->get_id() ); ?>" type="checkbox" name="id[]" value="<?php echo esc_attr( $item->get_id() ); ?>" />

	<div class="locked-indicator">
		<span class="locked-indicator-icon" aria-hidden="true"></span>
		<span class="screen-reader-text">
			<?php
			// translators: %s is an order ID.
			echo esc_html( sprintf( __( 'Order %s is locked.', 'woocommerce' ), $item->get_id() ) );
			?>
		</span>
	</div>
	<?php
	return ob_get_clean();
}