Add custom guest email selectors

Add CSS selectors for email fields that AutomateWoo should watch when guest capture is enabled. Keep selectors narrow so unrelated fields are not captured.

Developer note:

Add custom PHP in a small custom plugin or child theme, and test it on a staging site before production. This example requires ongoing maintenance when extension APIs change.

functions.php

<?php

add_filter( 'automatewoo/guest_capture_fields', 'my_store_guest_capture_fields' );

/**
 * Add fields to AutomateWoo guest capture.
 *
 * @param array $selectors CSS selectors.
 * @return array
 */
function my_store_guest_capture_fields( $selectors ) {
	$selectors[] = '#example-email-field';
	$selectors[] = '.example-email-field';

	return array_unique( $selectors );
}
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.