Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Defines which email fields in the checkout form should show email typo suggestions.
This setting is not related to email validation. It only controls the typo suggestions shown to users when entering an email address. For example, if someone types [email protected], Mailcheck may suggest [email protected]. Email validation will still run normally and is not affected by this option, and typos are not marked as validation errors when the email format is acceptable.
Parameters #
$field_ids(array) Array of field IDs that should use mailcheck. Defaults toarray( 'billing_email' ).
Examples #
/**
* Add custom email field to mailcheck
*/
function add_custom_email_field_to_mailcheck( $field_ids ) {
$field_ids[] = 'shipping_email';
return $field_ids;
}
add_filter( 'fc_checkout_email_fields_for_mailcheck', 'add_custom_email_field_to_mailcheck', 10 );
