PluginProbe
FormsCRM – Connect Forms to CRM directly / 3.7.2
FormsCRM – Connect Forms to CRM directly v3.7.2
4.4.3 4.4.2 4.4.1 4.4.0 4.3.3 trunk 1.1.0 1.2.0 1.2.1 3.0 3.1 3.1.1 3.10.0 3.11.0 3.12.0 3.12.2 3.12.3 3.12.4 3.13.0 3.13.1 3.13.2 3.13.3 3.13.4 3.13.5 3.14.0 All 63 releases
formscrm / formscrm.php

formscrm.php in FormsCRM – Connect Forms to CRM directly 3.7.2, at formscrm.php

89 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: FormsCRM
4 * Plugin URI: https://closemarketing.net/formscrm
5 * Description: Connects Forms with CRM.
6 * Version: 3.7.2
7 * Author: Closemarketing
8 * Author URI: https://close.marketing
9 * Text Domain: formscrm
10 * Domain Path: /languages
11 * License: GPL-2.0+
12 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
13 *
14 * @package WordPress
15 * @author Closemarketing
16 * @copyright 2021 Closemarketing
17 * @license GPL-2.0+
18 *
19 * @wordpress-plugin
20 *
21 * Prefix: fcrm
22 */
23
24 defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
25
26 define( 'FORMSCRM_VERSION', '3.7.2' );
27 define( 'FORMSCRM_PLUGIN', __FILE__ );
28 define( 'FORMSCRM_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
29 define( 'FORMSCRM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
30
31 add_action( 'plugins_loaded', 'fcrm_plugin_init' );
32 /**
33 * Load localization files
34 *
35 * @return void
36 */
37 function fcrm_plugin_init() {
38 load_plugin_textdomain( 'formscrm', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
39 }
40
41 add_filter(
42 'formscrm_choices',
43 function( $choices ) {
44 $choices[] = array(
45 'label' => 'Holded',
46 'value' => 'holded',
47 );
48
49 $choices[] = array(
50 'label' => 'Clientify',
51 'value' => 'clientify',
52 );
53
54 $choices[] = array(
55 'label' => 'AcumbaMail',
56 'value' => 'acumbamail',
57 );
58
59 return $choices;
60 }
61 );
62
63 add_filter(
64 'formscrm_dependency_apipassword',
65 function( $choices ) {
66
67 $choices[] = 'clientify';
68 $choices[] = 'acumbamail';
69 $choices[] = 'holded';
70
71 return $choices;
72 }
73 );
74
75 add_filter(
76 'formscrm_crmlib_path',
77 function( $choices ) {
78
79 $choices['holded'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-holded.php';
80 $choices['clientify'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-clientify.php';
81 $choices['acumbamail'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-acumbamail.php';
82
83 return $choices;
84 }
85 );
86
87 // Include files.
88 require_once FORMSCRM_PLUGIN_PATH . '/includes/formscrm-library/loader.php';
89