PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.14
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.14
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / includes / class-importer-manager.php

class-importer-manager.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.6.14, at includes/class-importer-manager.php

38 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Importer Manager
5 *
6 * @since 1.1.0
7 */
8 class WeForms_Importer_Manager {
9
10 public function __construct() {
11 $this->get_importers();
12 }
13
14 /**
15 * Fetch and instantiate all the importers
16 *
17 * @return array
18 */
19 public function get_importers() {
20 require_once WEFORMS_INCLUDES . '/importer/class-importer-abstract.php';
21 require_once WEFORMS_INCLUDES . '/importer/class-importer-cf7.php';
22 require_once WEFORMS_INCLUDES . '/importer/class-importer-gf.php';
23 require_once WEFORMS_INCLUDES . '/importer/class-importer-wpforms.php';
24 require_once WEFORMS_INCLUDES . '/importer/class-importer-ninja-forms.php';
25 require_once WEFORMS_INCLUDES . '/importer/class-importer-caldera-forms.php';
26
27 $importers = [
28 'cf7' => new WeForms_Importer_CF7(),
29 'gravity' => new WeForms_Importer_GF(),
30 'wpforms' => new WeForms_Importer_WPForms(),
31 'ninjaforms' => new WeForms_Importer_Ninja_Forms(),
32 'caldera' => new WeForms_Importer_Caldera_Forms(),
33 ];
34
35 return apply_filters( 'weforms_form_importers', $importers );
36 }
37 }
38