Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Created December 10, 2018 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbitzer/9bb83129b51d18cf5861255be354e2a4 to your computer and use it in GitHub Desktop.
Save danielbitzer/9bb83129b51d18cf5861255be354e2a4 to your computer and use it in GitHub Desktop.
[AutomateWoo] Prevent email capture and session tracking from the comment form
<?php
// Prevent email capture and session tracking from the comment form
add_action( 'automatewoo_loaded', function() {
remove_action( 'comment_post', [ 'AutomateWoo\Session_Tracker', 'capture_from_comment' ] );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment