Changeset 2726689
- Timestamp:
- 05/19/2022 10:16:04 AM (4 years ago)
- Location:
- clearout-email-validator/trunk
- Files:
-
- 3 edited
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
src/clearout_validator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clearout-email-validator/trunk/plugin.php
r2707409 r2726689 4 4 * Plugin URL: https://developer.wordpress.org/plugins/clearout-email-validator 5 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: 1.7.126 * Version: 2.0.0 7 7 * Author: Clearout.io 8 8 * Author URI: https://clearout.io … … 13 13 14 14 // plugin version. 15 define('CLEAROUT_PLUGIN_VERSION', ' 1.7.12');15 define('CLEAROUT_PLUGIN_VERSION', '2.0.0'); 16 16 define('CLEAROUT_RESULT_CACHED_TIMEOUT', 10800); 17 17 define('CLEAROUT_BASE_API_URL', "https://api.clearout.io/v2/"); 18 define("CLEAROUT_EMAIL_VERIFY_API_URL", CLEAROUT_BASE_API_URL . " email_verify/instant?v=" . CLEAROUT_PLUGIN_VERSION);18 define("CLEAROUT_EMAIL_VERIFY_API_URL", CLEAROUT_BASE_API_URL . "wordpress/email_verify?v=" . CLEAROUT_PLUGIN_VERSION); 19 19 define("CLEAROUT_PLUGIN_SETTINGS_API_URL", CLEAROUT_BASE_API_URL . "wordpress/co_wp_setting_changed?v=" . CLEAROUT_PLUGIN_VERSION); 20 20 define("CLEAROUT_PLUGIN_DEACTIVATED_API_URL", CLEAROUT_BASE_API_URL . "wordpress/co_wp_deactivated?v=" . CLEAROUT_PLUGIN_VERSION); -
clearout-email-validator/trunk/readme.txt
r2707409 r2726689 271 271 = 1.7.12 = 272 272 * Minor Fixes 273 = 2.0.0 274 * Major Fixes and Woocommerce form improvements -
clearout-email-validator/trunk/src/clearout_validator.php
r2707409 r2726689 51 51 } 52 52 53 function _get_current_page_url() { 54 $page_url = ''; 55 try { //try to get full url if possible? 56 $page_url = $_SERVER['HTTP_REFERER']; 57 } catch (Exception $e) { 58 $page_url = get_site_url(); 59 } 60 return $page_url; 61 } 62 53 63 function _co_verify_email($emailAddress, $api_key, $timeout, $clearout_form_source, $use_cache) 54 64 { … … 65 75 $data = NULL; 66 76 try { 77 global $wp; 78 // $page_url = add_query_arg( $wp->query_vars, home_url() ); 79 $page_url = _get_current_page_url(); 80 67 81 // Now we need to send the data to CLEAROUT API Token and return back the result. 68 $url = CLEAROUT_EMAIL_VERIFY_API_URL . '&r=fs& fn=' . $clearout_form_source;82 $url = CLEAROUT_EMAIL_VERIFY_API_URL . '&r=fs&source=wordpress&fn=' . $clearout_form_source . '&pu=' . urlencode($page_url); 69 83 $args = array( 70 84 'method' => 'POST',
Note: See TracChangeset
for help on using the changeset viewer.