Changeset 2557875
- Timestamp:
- 07/02/2021 07:11:05 PM (5 years ago)
- Location:
- earnware-connect/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
public/class-wp-ew-public.php (modified) (5 diffs)
-
wp-ew.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
earnware-connect/trunk/README.txt
r2545821 r2557875 28 28 == Changelog == 29 29 30 = 1.0.66 = 31 * Added ability to specify a workflow to trigger on an Earnware subscribe form submission 32 30 33 = 1.0.65 = 31 34 * Modified CCPA data that is visible to the subscriber. -
earnware-connect/trunk/public/class-wp-ew-public.php
r2545821 r2557875 185 185 public function ew_ccpa_url_handler($att, $content, $tag) { 186 186 $options = get_option($this->plugin_name); 187 $userId = isset($att["user Id"]) ? $att["userId"] : $options["user_id"];187 $userId = isset($att["user_id"]) ? $att["user_id"] : $options["user_id"]; 188 188 return 'https://www.safesubscribe.org/request-form/?brandId=' . $userId; 189 189 } … … 195 195 $autofill = isset($att["autofill"]) ? $att["autofill"] : 'false'; 196 196 $formId = isset($att["id"]) ? $att["id"] : uniqid("ew_subform_", false); 197 $userId = isset($att["userId"]) ? $att["userId"] : $options["user_id"]; 197 $userId = isset($att["user_id"]) ? $att["user_id"] : $options["user_id"]; 198 $workflowId = isset($att["workflow_id"]) ? $att["workflow_id"] : false; 198 199 $track_utm_custom = preg_replace("/\r|\n/", "|", $options["track_utm_custom"]); 199 200 $default_utm_campaign = isset($att["utm_campaign"]) ? $att["utm_campaign"] : ""; … … 390 391 <div style="display: none" class="_aHtml">{$altHtml}</div> 391 392 <div class="sub-form-container _pHtml" dir="ltr" lang="en-US"> 392 <form id='{$formId}' action="https://api.earnware.com/ production/contacts" class="sub-form" method="post">393 <form id='{$formId}' action="https://api.earnware.com/staging/contacts" class="sub-form" method="post"> 393 394 <div class="sub-form-body-container"> 394 395 <div class="sub-form-body"> … … 528 529 data.utm_term = EW.getItem("utm_term") || '{$default_utm_term}'; 529 530 data.sourceId = EW.getItem("utm_source") || '{$default_utm_source}' || window.location.hostname; 531 data.workflowId = '{$workflowId}'; 530 532 531 533 data.utm_placement = data.placementId; … … 559 561 }).done(function(response) { 560 562 EW.setRoles(EW.Roles.Subscriber); 561 console.log('success :)' );563 console.log('success :)', response); 562 564 563 565 jQuery("#{$formId} input.submit").val(existingSubmitText); -
earnware-connect/trunk/wp-ew.php
r2545821 r2557875 17 17 * Plugin URI: https://www.earnware.com/wordpress/plugins/earnware-connect 18 18 * Description: A plugin to connect any wordpress site to the Earnware Dashboard. 19 * Version: 1.0.6 519 * Version: 1.0.66 20 20 * Author: Earnware Corporation 21 21 * Author URI: https://earnware.com/about/ … … 31 31 } 32 32 33 define( 'PLUGIN_NAME_VERSION', '1.0.6 5' );33 define( 'PLUGIN_NAME_VERSION', '1.0.66' ); 34 34 35 35 /**
Note: See TracChangeset
for help on using the changeset viewer.