forked from gabcarvalhogama/elementic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelementic.php
More file actions
26 lines (20 loc) · 735 Bytes
/
elementic.php
File metadata and controls
26 lines (20 loc) · 735 Bytes
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
<?php
/**
* Plugin Name: Elementic
* Plugin URI: http://www.gabcarvalhogama.com.br/conheca-o-elementic
* Description: Integre o seu Elementor com o Mautic DE GRAÇA.
* Version: 1.0
* Author: Gabriel Carvalho Gama
* Author URI: http://www.gabcarvalhogama.com.br
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
add_action( 'elementor_pro/init', function() {
// Here its safe to include our action class file
require "Elementic_Form_Action.php";
// Instantiate the action class
$elementic = new Elementic_Form_Action();
// Register the action with form widget
\ElementorPro\Plugin::instance()->modules_manager->get_modules( 'forms' )->add_form_action( $elementic->get_name(), $elementic );
});