Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xlplugins/cc03eadd5afae86a2e90828d94cb0364 to your computer and use it in GitHub Desktop.
Save xlplugins/cc03eadd5afae86a2e90828d94cb0364 to your computer and use it in GitHub Desktop.
Funnelkit Checkout: Disabled Zoom and autofill update for billing email field
class WFACP_Billing_Email_Autofill_Disabled_zoom{
public function __construct() {
add_filter( 'wfacp_forms_field', [ $this, 'add_css_class' ], 99, 2 );
add_filter('wfacp_intial_scale_default','__return_true');
}
function add_css_class( $field, $key ) {
if ( $key !== 'billing_email' || !isset($field['autocomplete'])) {
return $field;
}
$field['autocomplete']='email';
return $field;
}
}
new WFACP_Billing_Email_Autofill_Disabled_zoom();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment