PluginProbe
Clearout Email Validator – Real-Time Email Verification on WordPress Forms / trunk
Clearout Email Validator – Real-Time Email Verification on WordPress Forms vtrunk
1.5.3 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.10 1.7.11 1.7.12 1.7.3 1.7.4 1.7.6 1.7.7 1.7.8 1.7.9 2.0.1 2.0.2 2.0.3 2.1.0 3.0.2 3.1.2 3.1.3 3.1.4 All 60 releases
clearout-email-validator / plugin.php

plugin.php in Clearout Email Validator – Real-Time Email Verification on WordPress Forms trunk, at plugin.php

41 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Clearout Email Validator
4 * Plugin URL: https://developer.wordpress.org/plugins/clearout-email-validator
5 * Description: This plugin seamlessly integrated with all major forms to validate the user's given email address in real-time. Under the hood, this plugin use Clearout API to perform 20+ refined validation checks to determine the status of the email address, and thus helps capturing only the valid leads to maintain high quality mailing list.
6 * Version: 3.3.2
7 * Author: Clearout.io
8 * Author URI: https://clearout.io
9 * License: GNU
10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 *
12 * @package clearout-email-validator
13 */
14
15 // plugin version.
16 define( 'CLEAROUT_PLUGIN_VERSION', '3.3.2' );
17 define( 'CLEAROUT_RESULT_CACHED_TIMEOUT', 3600 );
18 define( 'CLEAROUT_BASE_API_URL', 'https://api.clearout.io/v2/' );
19 define( 'CLEAROUT_EMAIL_VERIFY_API_URL', CLEAROUT_BASE_API_URL . 'wordpress/email_verify?v=' . CLEAROUT_PLUGIN_VERSION );
20 define( 'CLEAROUT_PLUGIN_SETTINGS_API_URL', CLEAROUT_BASE_API_URL . 'wordpress/co_wp_setting_changed?v=' . CLEAROUT_PLUGIN_VERSION );
21 define( 'CLEAROUT_PLUGIN_DEACTIVATED_API_URL', CLEAROUT_BASE_API_URL . 'wordpress/co_wp_deactivated?v=' . CLEAROUT_PLUGIN_VERSION );
22 define( 'CLEAROUT_PLUGIN_ACTIVATED_API_URL', CLEAROUT_BASE_API_URL . 'wordpress/co_wp_activated?v=' . CLEAROUT_PLUGIN_VERSION );
23 define( 'CLEAROUT_GET_AVAILABLE_CREDITS_API_URL', CLEAROUT_BASE_API_URL . 'email_verify/getcredits' );
24 define( 'CLEAROUT_TEST_PLUGIN_SOURCE', 'co-test-plugin' );
25 define( 'CLEAROUT_VERIFICATION_EMAIL_WHITELISTED_SUBSTATUS_CODE', 601 );
26 define( 'CLEAROUT_VERIFICATION_DOMAIN_WHITELISTED_SUBSTATUS_CODE', 603 );
27 define( 'CLEAROUT_VERIFICATION_TLD_WHITELISTED_SUBSTATUS_CODE', 607 );
28 define( 'CLEAROUT_VERIFICATION_ACCOUNT_WHITELISTED_SUBSTATUS_CODE', 609 );
29 define( 'CLEAROUT_UNAUTHORIZED_STATUS_CODE', 401 );
30 define( 'CLEAROUT_HTTP_OK_STATUS_CODE', 200 );
31 define( 'CLEAROUT_IGNORE_VALIDATION_IDENTIFIER_REGEX', '/^clearout_skip_validation/i' );
32
33 require_once ABSPATH . 'wp-admin/includes/plugin.php';
34 require_once dirname( __FILE__ ) . '/src/helper.php';
35 require_once dirname( __FILE__ ) . '/src/clearout-plugin.php';
36 require_once dirname( __FILE__ ) . '/src/clearout-validator.php';
37 require_once dirname( __FILE__ ) . '/src/clearout-plugin-page-settings.php';
38
39 register_activation_hook( __FILE__, 'co_hook_plugin_activate' );
40 register_deactivation_hook( __FILE__, 'co_hook_plugin_deactivate' );
41