Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::column_comment()
Method of the class: ReviewsListTable{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->echo $this->filter_column_output( foo, ob_get_clean(), $item );
- foo (required)
- -
- ob_get_clean() (required)
- -
- $item (required)
- -
ReviewsListTable::column_comment() ReviewsListTable::column comment code WC 9.8.2
<?php echo $this->filter_column_output( 'cb', ob_get_clean(), $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } /** * Renders the review column. * * @see WP_Comments_List_Table::column_comment() for consistency. * * @param WP_Comment|mixed $item Review or reply being rendered. * @return void */ protected function column_comment( $item ) : void { $in_reply_to = $this->get_in_reply_to_review_text( $item ); ob_start(); if ( $in_reply_to ) { echo $in_reply_to . '<br><br>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo '<div class="comment-text">'; comment_text( $item->comment_ID ); echo '</div>'; if ( $this->current_user_can_edit_review ) { ?> <div id="inline-<?php echo esc_attr( $item->comment_ID ); ?>" class="hidden">