ReviewsListTable::column_default()protectedWC 1.0

Renders any custom columns.

Method of the class: ReviewsListTable{}


null. Nothing (null).


// protected - for code of main (parent) or child class
$result = $this->column_default( $item, $column_name ) : void;
$item(WP_Comment|mixed) (required)
Review or reply being rendered.
$column_name(string|mixed) (required)
Name of the column being rendered.

ReviewsListTable::column_default() code WC 8.7.0

protected function column_default( $item, $column_name ) : void {


	 * Fires when the default column output is displayed for a single row.
	 * This action can be used to render custom columns that have been added.
	 * @since 6.7.0
	 * @param WP_Comment $item The review or reply being rendered.
	do_action( 'woocommerce_product_reviews_table_column_' . $column_name, $item );

	echo $this->filter_column_output( $column_name, ob_get_clean(), $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped