abstracts
4 years ago
admin
4 years ago
elementor
4 years ago
export
4 years ago
fields
4 years ago
interfaces
8 years ago
libraries
7 years ago
log-handlers
4 years ago
shortcodes
4 years ago
templates
5 years ago
class-everest-forms.php
4 years ago
class-evf-ajax.php
4 years ago
class-evf-autoloader.php
7 years ago
class-evf-background-updater.php
7 years ago
class-evf-cache-helper.php
6 years ago
class-evf-deprecated-action-hooks.php
6 years ago
class-evf-deprecated-filter-hooks.php
5 years ago
class-evf-emails.php
5 years ago
class-evf-fields.php
6 years ago
class-evf-form-block.php
4 years ago
class-evf-form-handler.php
4 years ago
class-evf-form-task.php
4 years ago
class-evf-forms-features.php
4 years ago
class-evf-frontend-scripts.php
4 years ago
class-evf-install.php
5 years ago
class-evf-integrations.php
7 years ago
class-evf-log-levels.php
8 years ago
class-evf-logger.php
5 years ago
class-evf-post-types.php
5 years ago
class-evf-privacy.php
6 years ago
class-evf-session-handler.php
7 years ago
class-evf-shortcodes.php
4 years ago
class-evf-smart-tags.php
4 years ago
class-evf-template-loader.php
4 years ago
class-evf-validation.php
6 years ago
evf-conditional-functions.php
6 years ago
evf-core-functions.php
4 years ago
evf-deprecated-functions.php
6 years ago
evf-entry-functions.php
4 years ago
evf-formatting-functions.php
4 years ago
evf-notice-functions.php
4 years ago
evf-template-functions.php
4 years ago
evf-template-hooks.php
7 years ago
evf-update-functions.php
5 years ago
class-evf-integrations.php
52 lines
| 1 | <?php |
| 2 | /** |
| 3 | * EverestForms Integrations class |
| 4 | * |
| 5 | * Loads Integrations into EverestForms. |
| 6 | * |
| 7 | * @package EverestForms/Classes/Integrations |
| 8 | * @version 1.2.1 |
| 9 | */ |
| 10 | |
| 11 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | /** |
| 14 | * Integrations class. |
| 15 | */ |
| 16 | class EVF_Integrations { |
| 17 | |
| 18 | /** |
| 19 | * Array of integrations. |
| 20 | * |
| 21 | * @var array |
| 22 | */ |
| 23 | public $integrations = array(); |
| 24 | |
| 25 | /** |
| 26 | * Initialize integrations. |
| 27 | */ |
| 28 | public function __construct() { |
| 29 | |
| 30 | do_action( 'everest_forms_integrations_init' ); |
| 31 | |
| 32 | $load_integrations = apply_filters( 'everest_forms_integrations', array() ); |
| 33 | |
| 34 | // Load integration classes. |
| 35 | foreach ( $load_integrations as $integration ) { |
| 36 | |
| 37 | $load_integration = new $integration(); |
| 38 | |
| 39 | $this->integrations[ $load_integration->id ] = $load_integration; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Return loaded integrations. |
| 45 | * |
| 46 | * @return array |
| 47 | */ |
| 48 | public function get_integrations() { |
| 49 | return $this->integrations; |
| 50 | } |
| 51 | } |
| 52 |