Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_columns()publicWC 1.0

Gets the columns for the table.

Method of the class: ReviewsListTable{}

Return

Array. Table columns and their headings.

Usage

$ReviewsListTable = new ReviewsListTable();
$ReviewsListTable->get_columns() : array;

ReviewsListTable::get_columns() code WC 9.6.1

public function get_columns() : array {
	$columns = [
		'cb'       => '<input type="checkbox" />',
		'type'     => _x( 'Type', 'review type', 'woocommerce' ),
		'author'   => __( 'Author', 'woocommerce' ),
		'rating'   => __( 'Rating', 'woocommerce' ),
		'comment'  => _x( 'Review', 'column name', 'woocommerce' ),
		'response' => __( 'Product', 'woocommerce' ),
		'date'     => _x( 'Submitted on', 'column name', 'woocommerce' ),
	];

	/**
	 * Filters the table columns.
	 *
	 * @since 6.7.0
	 *
	 * @param array $columns
	 */
	return (array) apply_filters( 'woocommerce_product_reviews_table_columns', $columns );
}