forked from anacaet/rdstation-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rdstation-wp.php
executable file
·44 lines (34 loc) · 1.75 KB
/
rdstation-wp.php
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
Plugin Name: Integração RD Station
Plugin URI: https://wordpress.org/plugins/integracao-rdstation
Description: Integre seus formulários de contato do WordPress com o RD Station
Version: 2.3
Author: Resultados Digitais
Author URI: http://resultadosdigitais.com.br
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Integração RD Station is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.
Integração RD Station is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Integração RD Station. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
*/
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
require_once('RD_Custom_Post_Type.php');
require_once('lead-conversion.php');
require_once('metaboxes/add_custom_scripts.php');
function enqueue_rd_admin_style($hook) {
if ( 'post.php' != $hook ) return;
wp_enqueue_style( 'rd_admin_style', plugin_dir_url( __FILE__ ) . 'styles/admin.css' );
}
add_action( 'admin_enqueue_scripts', 'enqueue_rd_admin_style' );
$contact_form_7 = new RD_Custom_Post_Type ( 'CF7', 'Contact Form 7', 'rdcf7', 'contact-form-7/wp-contact-form-7.php' );
new LeadConversion('contact_form_7', 'wpcf7_mail_sent');
$gravity_forms = new RD_Custom_Post_Type ( 'GF', 'Gravity Forms', 'rdgf', 'gravityforms/gravityforms.php' );
new LeadConversion('gravity_forms', 'gform_after_submission');