Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Last active December 5, 2022 06:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbitzer/657d68d57f788f9f4143210d8cc4151c to your computer and use it in GitHub Desktop.
Save danielbitzer/657d68d57f788f9f4143210d8cc4151c to your computer and use it in GitHub Desktop.
[AutomateWoo] Setting custom guest capture selectors. More info at https://automatewoo.com/docs/abandoned-cart/
<?php
add_filter( 'automatewoo/guest_capture_fields', 'my_guest_capture_fields' );
/**
* @param array $selectors
*/
function my_guest_capture_fields( $selectors ) {
$selectors[] = '#example-id-selector';
$selectors[] = '.example-class-selector';
return $selectors;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment