Subscriptions.php
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace ACA\WC\ListScreen;
use ACA\WC\Column\ShopOrder;
use ACA\WC\Column\ShopSubscription;
use ACP;
class Subscriptions extends ACP\ListScreen\Post
{
public function __construct()
{
parent::__construct('shop_subscription');
$this->group = 'woocommerce';
}
protected function register_column_types(): void
{
parent::register_column_types();
$this->register_column_types_from_list([
ShopOrder\Address\Shipping::class,
ShopOrder\Address\Billing::class,
ShopOrder\Customer::class,
ShopOrder\CouponsUsed::class,
ShopOrder\Currency::class,
ShopOrder\Discount::class,
ShopOrder\Downloads::class,
ShopOrder\Product::class,
ShopOrder\ProductDetails::class,
ShopOrder\Order::class,
ShopOrder\Purchased::class,
ShopOrder\Subtotal::class,
ShopOrder\Tax::class,
ShopOrder\Tax::class,
ShopOrder\Totals::class,
ShopSubscription\AutoRenewal::class,
ShopSubscription\EndDate::class,
ShopSubscription\LastPaymentDate::class,
ShopSubscription\NextPaymentDate::class,
ShopSubscription\Orders::class,
ShopSubscription\OrderItems::class,
ShopSubscription\RecurringTotal::class,
ShopSubscription\StartDate::class,
ShopSubscription\Status::class,
ShopSubscription\SubscriptionDate::class,
ShopSubscription\TotalRevenue::class,
ShopSubscription\TrailEndDate::class,
]);
}
}