PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.2.8
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.2.8
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / modules / advanced-reviews / admin / class-reviews-table.php

class-reviews-table.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 2.2.8, at inc/modules/advanced-reviews/admin/class-reviews-table.php

51 lines 993 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Product Reviews List Table on Dashboard.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 if ( ! class_exists( 'Merchant_Reviews_Table' ) ) {
14
15 class Merchant_Reviews_Table {
16 public function __construct() {
17 //add_filter( 'manage_product_page_product-reviews_columns', array( $this, 'add_photos_columns' ) );
18
19 //add_filter( 'manage_product_page_product-reviews_sortable_columns', array( $this, 'add_photos_sortable_columns' ) );
20 }
21
22 /**
23 * Add Photo Column.
24 *
25 * @param $columns
26 *
27 * @return array
28 */
29 public function add_photos_columns( $columns ): array {
30 $columns['photos'] = esc_html__( 'Photos', 'merchant' );
31
32 return $columns;
33 }
34
35 /**
36 * Make Photo column sortable.
37 *
38 * @param $columns
39 *
40 * @return array
41 */
42 public function add_photos_sortable_columns( $columns ): array {
43 $columns['photos'] = 'photos';
44
45 return $columns;
46 }
47 }
48
49 new Merchant_Reviews_Table();
50 }
51