<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /** * 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', [ $this, 'load' ] ); } /** * Load default marketing providers. * * @since 1.3.6 */ public function load() { $providers = [ 'constant-contact', ]; $providers = (array) apply_filters( 'wpforms_load_providers', $providers ); foreach ( $providers as $provider ) { $provider = sanitize_file_name( $provider ); $path = WPFORMS_PLUGIN_DIR . 'includes/providers/class-' . $provider . '.php'; if ( file_exists( $path ) ) { require_once $path; } /** * Allow third-party plugins to load their own providers. * * @since 1.7.0 */ do_action( "wpforms_load_{$provider}_provider" ); } } } new WPForms_Providers();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
admin | Folder | 0755 |
|
|
emails | Folder | 0755 |
|
|
fields | Folder | 0755 |
|
|
functions | Folder | 0755 |
|
|
providers | Folder | 0755 |
|
|
templates | Folder | 0755 |
|
|
class-db.php | File | 22.5 KB | 0644 |
|
class-fields.php | File | 1.91 KB | 0644 |
|
class-form.php | File | 38.6 KB | 0644 |
|
class-install.php | File | 5.56 KB | 0644 |
|
class-process.php | File | 59.34 KB | 0644 |
|
class-providers.php | File | 1.16 KB | 0644 |
|
class-templates.php | File | 1.26 KB | 0644 |
|
class-widget.php | File | 6 KB | 0644 |
|
deprecated.php | File | 12.12 KB | 0644 |
|
functions-list.php | File | 152 B | 0644 |
|
functions.php | File | 1.08 KB | 0644 |
|
integrations.php | File | 2.92 KB | 0644 |
|