HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/in.kamilleinc.com/wp-content/plugins/weforms/includes/class-importer-manager.php
<?php

/**
 * Importer Manager
 *
 * @since 1.1.0
 */
class WeForms_Importer_Manager {

    public function __construct() {
        $this->get_importers();
    }

    /**
     * Fetch and instantiate all the importers
     *
     * @return array
     */
    public function get_importers() {
        require_once WEFORMS_INCLUDES . '/importer/class-importer-abstract.php';
        require_once WEFORMS_INCLUDES . '/importer/class-importer-cf7.php';
        require_once WEFORMS_INCLUDES . '/importer/class-importer-gf.php';
        require_once WEFORMS_INCLUDES . '/importer/class-importer-wpforms.php';
        require_once WEFORMS_INCLUDES . '/importer/class-importer-ninja-forms.php';
        require_once WEFORMS_INCLUDES . '/importer/class-importer-caldera-forms.php';

        $importers = [
            'cf7'        => new WeForms_Importer_CF7(),
            'gravity'    => new WeForms_Importer_GF(),
            'wpforms'    => new WeForms_Importer_WPForms(),
            'ninjaforms' => new WeForms_Importer_Ninja_Forms(),
            'caldera'    => new WeForms_Importer_Caldera_Forms(),
        ];

        return apply_filters( 'weforms_form_importers', $importers );
    }
}