Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_sortable_columns()
Gets the name of the default primary column.
Method of the class: ReviewsListTable{}
No Hooks.
Return
String
. Name of the primary column.
Usage
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->return 'comment';
ReviewsListTable::get_sortable_columns() ReviewsListTable::get sortable columns code WC 9.8.1
return 'comment'; } /** * Gets a list of sortable columns. * * Key is the column ID and value is which database column we perform the sorting on. * The `rating` column uses a unique key instead, as that requires sorting by meta value. *