Automattic\WooCommerce\Internal\StockNotifications\Admin
ListTable::column_cb
Handles the checkbox column output.
Method of the class: ListTable{}
No Hooks.
Returns
void. Nothing (null).
Usage
$ListTable = new ListTable(); $ListTable->column_cb( $notification );
- $notification(Notification) (required)
- The notification object.
ListTable::column_cb() ListTable::column cb code WC 11.2.2
<?php
public function column_cb( $notification ) {
?><label class="screen-reader-text" for="cb-select-<?php echo absint( $notification->get_id() ); ?>">
<?php
/* translators: %s: Notification code */
printf( esc_html__( 'Select %s', 'woocommerce' ), esc_html( $notification->get_id() ) );
?>
</label>
<input id="cb-select-<?php echo absint( $notification->get_id() ); ?>" type="checkbox" name="notification[]" value="<?php echo absint( $notification->get_id() ); ?>" />
<?php
}