| 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 |
|