Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::column_default()
Renders any custom columns.
Method of the class: ReviewsListTable{}
Hooks from the method
Return
null
. Nothing (null).
Usage
// 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() ReviewsListTable::column default code WC 9.7.1
protected function column_default( $item, $column_name ) : void { ob_start(); /** * 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 }