Last active
December 5, 2022 06:58
-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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