C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\wpforms-lite\includes\class-providers.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
<?php

/**
 * Load the providers.
 *
 * @since 1.3.6
 */
class WPForms_Providers {

    
/**
     * Primary class constructor.
     *
     * @since 1.3.6
     */
    
public function __construct() {

        
$this->init();
    }

    
/**
     * Load and init the base provider class.
     *
     * @since 1.3.6
     */
    
public function init() {

        
// Parent class template.
        
require_once WPFORMS_PLUGIN_DIR 'includes/providers/class-base.php';

        
// Load default templates on WP init.
        
add_action'wpforms_loaded', array( $this'load' ) );
    }

    
/**
     * Load default marketing providers.
     *
     * @since 1.3.6
     */
    
public function load() {

        
$providers = array(
            
'constant-contact',
        );

        
$providers apply_filters'wpforms_load_providers'$providers );

        foreach ( 
$providers as $provider ) {

            
$provider sanitize_file_name$provider );

            require_once 
WPFORMS_PLUGIN_DIR 'includes/providers/class-' $provider '.php';
        }
    }
}

new 
WPForms_Providers;
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586