-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom-dashboard-code
83 lines (82 loc) · 5.25 KB
/
custom-dashboard-code
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Improves detection of available updates for premium plugins
add_filter( 'mainwp_detect_premium_plugins_update', 'hook_mainwp_detect_premium_plugins_update', 10 );
function hook_mainwp_detect_premium_plugins_update( $premiums = array() ){
$premiums[] = 'yith-product-shipping-for-woocommerce-premium/init.php';
$premiums[] = 'yith-woocommerce-advanced-product-options-premium/init.php';
$premiums[] = 'yith-woocommerce-badge-management-premium/init.php';
$premiums[] = 'yith-woocommerce-name-your-price-premium/init.php';
$premiums[] = 'yith-woocommerce-waiting-list-premium/init.php';
$premiums[] = 'yith-cost-of-goods-for-woocommerce-premium/init.php';
$premiums[] = 'yith-woocommerce-coupon-email-system-premium/init.php';
$premiums[] = 'yith-woocommerce-custom-order-status-premium/init.php';
$premiums[] = 'yith-woocommerce-gift-cards-premium/init.php';
$premiums[] = 'yith-woocommerce-minimum-maximum-quantity-premium/init.php';
$premiums[] = 'yith-woocommerce-points-and-rewards-premium/init.php';
$premiums[] = 'yith-woocommerce-brands-add-on-premium/init.php';
$premiums[] = 'yith-woocommerce-booking-premium/init.php';
$premiums[] = 'yith-woocommerce-checkout-manager/init.php';
$premiums[] = 'yith-woocommerce-stripe-premium/init.php';
$premiums[] = 'yith-easy-login-register-popup-for-woocommerce/init.php';
$premiums[] = 'yith-live-push-notifications-for-woocommerce/init.php';
$premiums[] = 'yith-woocommerce-bulk-product-editing-premium/init.php';
$premiums[] = 'yith-woocommerce-dynamic-pricing-and-discounts-premium/init.php';
$premiums[] = 'yith-woocommerce-eu-vat-premium/init.php';
$premiums[] = 'yith-woocommerce-frequently-bought-together-premium/init.php';
$premiums[] = 'yith-woocommerce-order-tracking-premium/init.php';
$premiums[] = 'yith-woocommerce-pdf-invoice-premium/init.php';
$premiums[] = 'yith-woocommerce-product-bundles-premium/init.php';
$premiums[] = 'yith-woocommerce-save-for-later-premium/init.php';
$premiums[] = 'yith-woocommerce-wishlist-premium/init.php';
$premiums[] = 'yith-composite-products-for-woocommerce/init.php';
$premiums[] = 'yith-woocommerce-catalog-mode-premium/init.php';
$premiums[] = 'yith-deals-for-woocommerce-premium/init.php';
$premiums[] = 'yith-point-of-sale-for-woocommerce/init.php';
$premiums[] = 'yith-woocommerce-subscription-premium/init.php';
$premiums[] = 'yith-woocommerce-affiliates-premium/init.php';
$premiums[] = 'yith-woocommerce-color-label-variations-premium/init.php';
$premiums[] = 'yith-woocommerce-auctions-premium/init.php';
$premiums[] = 'yith-woocommerce-deposits-and-down-payments-premium/init.php';
$premiums[] = 'yith-woocommerce-recover-abandoned-cart-premium/init.php';
return $premiums;
}
// Improves the update process of premium plugins
add_filter( 'mainwp_request_update_premium_plugins', 'hook_mainwp_request_update_premium_plugins', 10 );
function hook_mainwp_request_update_premium_plugins( $premiums = array() ){
$premiums[] = 'yith-product-shipping-for-woocommerce-premium/init.php';
$premiums[] = 'yith-woocommerce-advanced-product-options-premium/init.php';
$premiums[] = 'yith-woocommerce-badge-management-premium/init.php';
$premiums[] = 'yith-woocommerce-name-your-price-premium/init.php';
$premiums[] = 'yith-woocommerce-waiting-list-premium/init.php';
$premiums[] = 'yith-cost-of-goods-for-woocommerce-premium/init.php';
$premiums[] = 'yith-woocommerce-coupon-email-system-premium/init.php';
$premiums[] = 'yith-woocommerce-custom-order-status-premium/init.php';
$premiums[] = 'yith-woocommerce-gift-cards-premium/init.php';
$premiums[] = 'yith-woocommerce-minimum-maximum-quantity-premium/init.php';
$premiums[] = 'yith-woocommerce-points-and-rewards-premium/init.php';
$premiums[] = 'yith-woocommerce-brands-add-on-premium/init.php';
$premiums[] = 'yith-woocommerce-booking-premium/init.php';
$premiums[] = 'yith-woocommerce-checkout-manager/init.php';
$premiums[] = 'yith-woocommerce-stripe-premium/init.php';
$premiums[] = 'yith-easy-login-register-popup-for-woocommerce/init.php';
$premiums[] = 'yith-live-push-notifications-for-woocommerce/init.php';
$premiums[] = 'yith-woocommerce-bulk-product-editing-premium/init.php';
$premiums[] = 'yith-woocommerce-dynamic-pricing-and-discounts-premium/init.php';
$premiums[] = 'yith-woocommerce-eu-vat-premium/init.php';
$premiums[] = 'yith-woocommerce-frequently-bought-together-premium/init.php';
$premiums[] = 'yith-woocommerce-order-tracking-premium/init.php';
$premiums[] = 'yith-woocommerce-pdf-invoice-premium/init.php';
$premiums[] = 'yith-woocommerce-product-bundles-premium/init.php';
$premiums[] = 'yith-woocommerce-save-for-later-premium/init.php';
$premiums[] = 'yith-woocommerce-wishlist-premium/init.php';
$premiums[] = 'yith-composite-products-for-woocommerce/init.php';
$premiums[] = 'yith-woocommerce-catalog-mode-premium/init.php';
$premiums[] = 'yith-deals-for-woocommerce-premium/init.php';
$premiums[] = 'yith-point-of-sale-for-woocommerce/init.php';
$premiums[] = 'yith-woocommerce-subscription-premium/init.php';
$premiums[] = 'yith-woocommerce-affiliates-premium/init.php';
$premiums[] = 'yith-woocommerce-color-label-variations-premium/init.php';
$premiums[] = 'yith-woocommerce-auctions-premium/init.php';
$premiums[] = 'yith-woocommerce-deposits-and-down-payments-premium/init.php';
$premiums[] = 'yith-woocommerce-recover-abandoned-cart-premium/init.php';
return $premiums;
}