Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_columns()publicWC 1.0

Gets the columns for the table.

Метод класса: ReviewsListTable{}

Хуки из метода

Возвращает

Массив. Table columns and their headings.

Использование

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

Код ReviewsListTable::get_columns() WC 8.7.0

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 );
}