# formscrm/trunk/formscrm.php

FormsCRM – Connect Forms to CRM directly, version trunk. 100 lines.

- Page: https://pluginprobe.com/plugins/formscrm/trunk/code/formscrm.php
- Raw: https://pluginprobe.com/plugins/formscrm/trunk/raw/formscrm.php
- Modified: 2026-08-19T11:43:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formscrm/trunk/code/formscrm.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: FormsCRM
 * Plugin URI : https://close.technology/wordpress-plugins/formscrm/
 * Description: Connects Forms with CRM, ERP and Email Marketing.
 * Version: 4.4.3
 * Author: CloseTechnology
 * Author URI: https://close.technology
 * Text Domain: formscrm
 * Domain Path: /languages
 * License: GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 *
 * @package     WordPress
 * @author      CloseTechnology
 * @copyright   2024 CloseTechnology
 * @license     GPL-2.0+
 *
 * @wordpress-plugin
 *
 * Prefix:      fcrm
 */

defined( 'ABSPATH' ) || die( 'No script kiddies please!' );

define( 'FORMSCRM_VERSION', '4.4.3' );
define( 'FORMSCRM_PLUGIN', __FILE__ );
define( 'FORMSCRM_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'FORMSCRM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'FORMSCRM_CRED_VARIABLES', array( 'url', 'username', 'password', 'apipassword', 'odoodb', 'apisales' ) );

add_filter(
	'formscrm_choices',
	function ( $choices ) {
		$choices[] = array(
			'label' => 'Holded',
			'value' => 'holded',
		);

		$choices[] = array(
			'label' => 'Clientify',
			'value' => 'clientify',
		);

		$choices[] = array(
			'label' => 'AcumbaMail',
			'value' => 'acumbamail',
		);

		$choices[] = array(
			'label' => 'Brevo',
			'value' => 'brevo',
		);

		$choices[] = array(
			'label' => 'MailerLite Classic',
			'value' => 'mailerlite',
		);

		return $choices;
	}
);

add_filter(
	'formscrm_dependency_apipassword',
	function ( $choices ) {

		$choices[] = 'clientify';
		$choices[] = 'acumbamail';
		$choices[] = 'holded';
		$choices[] = 'mailerlite';
		$choices[] = 'brevo';

		return $choices;
	}
);

add_filter(
	'formscrm_crmlib_path',
	function ( $choices ) {

		$choices['holded']     = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-holded.php';
		$choices['clientify']  = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-clientify.php';
		$choices['acumbamail'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-acumbamail.php';
		$choices['mailerlite'] = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-mailerlite.php';
		$choices['brevo']      = FORMSCRM_PLUGIN_PATH . 'includes/crm-library/class-crmlib-brevo.php';

		return $choices;
	}
);

// Include files.
require_once FORMSCRM_PLUGIN_PATH . '/includes/formscrm-library/loader.php';
require_once FORMSCRM_PLUGIN_PATH . '/includes/admin/class-admin-options.php';
require_once FORMSCRM_PLUGIN_PATH . '/includes/admin/class-error-log.php';
require_once FORMSCRM_PLUGIN_PATH . '/includes/admin/class-error-log-page.php';
require_once FORMSCRM_PLUGIN_PATH . '/includes/admin/class-review-notice.php';

new FORMSCRM_Review_Notice();

```
