/var/www/html_uk/wp-content/plugins/automatewoo/includes/Notifications.php


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
<?php

namespace AutomateWoo\Notifications;

use 
AutomateWoo\Registry;

defined'ABSPATH' ) || exit;

/**
 * Registry for all notifications.
 *
 * @since 5.8.5
 *
 * @package AutomateWoo
 */
class Notifications extends Registry {

    
/**
     * Notification type that will be processed immediately when WP-Admin is loaded
     *
     * @var string
     */
    
const INSTANT 'instant';

    
/**
     * Notification type that will be processed when AutomateWoo is activated or updated.
     *
     * @var string
     */
    
const ACTIVATION_OR_UPDATE 'activate_or_update';

    
/**
     * Notification type that will be processed hourly
     *
     * @var string
     */
    
const SCHEDULED 'scheduled';

    
/**
     * Static store of the includes map.
     *
     * @var array
     */
    
protected static $includes;

    
/**
     * Load all notifications.
     *
     * @return array
     */
    
public static function load_includes(): array {
        
$includes = array(
            
'minimum_wc_version'  => WCMinVersionCheck::class,
            
'minimum_php_version' => PHPMinVersionCheck::class,
            
'system_checks'       => SystemChecks::class,
            
'welcome'             => WelcomeNotification::class,
            
'mailchimp'           => MailchimpCheck::class,
            
'activecampaign'      => ActiveCampaignCheck::class,
            
'twilio'              => TwilioCheck::class,
            
'bitly'               => BitlyCheck::class,
            
'campaign_monitor'    => CampaignMonitorCheck::class,
            
'referrals'           => ReferAFriendCheck::class,
            
'birthdays'           => BirthdaysCheck::class,
        );

        return 
apply_filters'automatewoo/notifications/includes'$includes );
    }
}