Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created March 4, 2024 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/490f366d1e75779becc0447384a3ce13 to your computer and use it in GitHub Desktop.
Save clifgriffin/490f366d1e75779becc0447384a3ce13 to your computer and use it in GitHub Desktop.
CheckoutWC: Enable Abandoned Cart Recovery tracking without emails.
<?php
/**
* Enable ACR cart tracking without published emails
*
* Add to your child theme's functions.php file or to WP Admin > CheckoutWC > Advanced > Scripts > PHP Snippets
* Do NOT include the opening PHP tag above (<?php)
*/
add_filter( 'cfw_acr_track_cart_without_emails', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment