Skip to content

Commit

Permalink
don't set referrer during the checkout process, to ensure payment gat…
Browse files Browse the repository at this point in the history
…eways aren't set as referrers
  • Loading branch information
Robert Elliott committed Feb 13, 2018
1 parent cd625f8 commit f91e764
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public function __construct() {
* Make _wca available to queue events
*/
public function wp_head_top() {
if ( is_cart() || is_checkout() || is_checkout_pay_page() || is_order_received_page() || is_add_payment_method_page() ) {
$prevent_referrer_code = "<script>window._wca_prevent_referrer = true;</script>";
echo "$prevent_referrer_code\r\n";
}
$wca_code = "<script>window._wca = window._wca || [];</script>";
echo "$wca_code\r\n";
}
Expand Down

0 comments on commit f91e764

Please sign in to comment.