Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::column_cb()
Renders the checkbox column.
Method of the class: ReviewsListTable{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->column_cb( $item ) : void;
- $item(WP_Comment|mixed) (required)
- Review or reply being rendered.
ReviewsListTable::column_cb() ReviewsListTable::column cb code WC 8.7.0
<?php protected function column_cb( $item ) : void { ob_start(); if ( $this->current_user_can_edit_review ) { ?> <label class="screen-reader-text" for="cb-select-<?php echo esc_attr( $item->comment_ID ); ?>"><?php esc_html_e( 'Select review', 'woocommerce' ); ?></label> <input id="cb-select-<?php echo esc_attr( $item->comment_ID ); ?>" type="checkbox" name="delete_comments[]" value="<?php echo esc_attr( $item->comment_ID ); ?>" /> <?php } echo $this->filter_column_output( 'cb', ob_get_clean(), $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped }