Automattic\WooCommerce\Internal\StockNotifications\Admin
ListTable::column_cb
Handles the checkbox column output.
Метод класса: ListTable{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$ListTable = new ListTable(); $ListTable->column_cb( $notification );
- $notification(Notification) (обязательный)
- The notification object.
Код ListTable::column_cb() ListTable::column cb WC 11.3.0
<?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
}