/var/www/html_uk/wp-content/plugins/automatewoo/includes/Constants.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
69
70
71
72
73
74
75
76
<?php

namespace AutomateWoo;

/**
 * Class to define AutomateWoo constants.
 *
 * @class Constants
 * @package AutomateWoo
 */
class Constants {

    
/**
     * Initialize AW constants
     */
    
public static function init() {
        
self::set_defaults();
    }

    
/**
     * Set defaults
     */
    
public static function set_defaults() {

        if ( ! 
defined'AW_PREVENT_WORKFLOWS' ) ) {
            
define'AW_PREVENT_WORKFLOWS'false );
        }

        if ( ! 
defined'AUTOMATEWOO_DISABLE_ASYNC_CUSTOMER_NEW_ACCOUNT' ) ) {
            
define'AUTOMATEWOO_DISABLE_ASYNC_CUSTOMER_NEW_ACCOUNT'false );
        }

        if ( ! 
defined'AUTOMATEWOO_DISABLE_ASYNC_SUBSCRIPTION_STATUS_CHANGED' ) ) {
            
define'AUTOMATEWOO_DISABLE_ASYNC_SUBSCRIPTION_STATUS_CHANGED'false );
        }

        if ( ! 
defined'AUTOMATEWOO_DISABLE_ASYNC_ORDER_STATUS_CHANGED' ) ) {
            
define'AUTOMATEWOO_DISABLE_ASYNC_ORDER_STATUS_CHANGED'false );
        }

        if ( ! 
defined'AUTOMATEWOO_LOG_ASYNC_EVENTS' ) ) {
            
define'AUTOMATEWOO_LOG_ASYNC_EVENTS'false );
        }

        if ( ! 
defined'AUTOMATEWOO_ENABLE_INSTANT_EVENT_DISPATCHING' ) ) {
            
// Default value was changed to true in 4.9.0
            
define'AUTOMATEWOO_ENABLE_INSTANT_EVENT_DISPATCHING'true );
        }

        if ( ! 
defined'AUTOMATEWOO_LOG_SENT_SMS' ) ) {
            
define'AUTOMATEWOO_LOG_SENT_SMS'false );
        }

        if ( ! 
defined'AUTOMATEWOO_BACKGROUND_PROCESS_DEBUG' ) ) {
            
define'AUTOMATEWOO_BACKGROUND_PROCESS_DEBUG'false );
        }

        
/**
         * Values used to display notices to warn of planned changes to the minimum requirements.
         *
         * @since 4.9.5
         */
        // The AutomateWoo release that will implement the indicated changes.
        
if ( ! defined'AUTOMATEWOO_NOTICE_AW_VER' ) ) {
            
define'AUTOMATEWOO_NOTICE_AW_VER''6.2.0' );
        }
        
// The new WordPress minimum required version after the changes.
        
if ( ! defined'AUTOMATEWOO_NOTICE_WP_VER' ) ) {
            
define'AUTOMATEWOO_NOTICE_WP_VER''6.7' );
        }
        
// The new WooCommerce require version after the changes.
        
if ( ! defined'AUTOMATEWOO_NOTICE_WC_VER' ) ) {
            
define'AUTOMATEWOO_NOTICE_WC_VER''9.9' );
        }
    }
}