PluginProbe
FormsCRM – Connect Forms to CRM directly / 3.15.2
FormsCRM – Connect Forms to CRM directly v3.15.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.15.2, at formscrm.php

99 lines 2.5 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://close.technology/wordpress-plugins/formscrm/
5 * Description: Connects Forms with CRM, ERP and Email Marketing.
6 * Version: 3.15.2
7 * Author: CloseTechnology
8 * Author URI: https://close.technology
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 CloseTechnology
16 * @copyright 2024 CloseTechnology
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.15.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 define( 'FORMSCRM_CRED_VARIABLES', array( 'url', 'username', 'password', 'apipassword', 'odoodb', 'apisales' ) );
31
32 add_action( 'plugins_loaded', 'fcrm_plugin_init' );
33 /**
34 * Load localization files
35 *
36 * @return void
37 */
38 function fcrm_plugin_init() {
39 load_plugin_textdomain( 'formscrm', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
40 }
41
42 add_filter(
43 'formscrm_choices',
44 function( $choices ) {
45 $choices[] = array(
46 'label' => 'Holded',
47 'value' => 'holded',
48 );
49
50 $choices[] = array(
51 'label' => 'Clientify',
52 'value' => 'clientify',
53 );
54
55 $choices[] = array(
56 'label' => 'AcumbaMail',
57 'value' => 'acumbamail',
58 );
59
60 $choices[] = array(
61 'label' => 'MailerLite Classic',
62 'value' => 'mailerlite',
63 );
64
65 return $choices;
66 }
67 );
68
69 add_filter(
70 'formscrm_dependency_apipassword',
71 function( $choices ) {
72
73 $choices[] = 'clientify';
74 $choices[] = 'acumbamail';
75 $choices[] = 'holded';
76 $choices[] = 'mailerlite';
77
78 return $choices;
79 }
80 );
81
82 add_filter(
83 'formscrm_crmlib_path',
84 function( $choices ) {
85
86 $choices['holded'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-holded.php';
87 $choices['clientify'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-clientify.php';
88 $choices['acumbamail'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-acumbamail.php';
89 $choices['mailerlite'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-mailerlite.php';
90
91 return $choices;
92 }
93 );
94
95 // Include files.
96 require_once FORMSCRM_PLUGIN_PATH . '/includes/admin/class-admin-options.php';
97 require_once FORMSCRM_PLUGIN_PATH . '/includes/admin/class-admin-updater.php';
98 require_once FORMSCRM_PLUGIN_PATH . '/includes/formscrm-library/loader.php';
99