Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_columns()
Gets the columns for the table.
Method of the class: ReviewsListTable{}
Hooks from the method
Return
Array
. Table columns and their headings.
Usage
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->get_columns() : array;
ReviewsListTable::get_columns() 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 ); }