---
title: "How to prevent map from auto-filling checkout fields"
description: By default Kikote will fill in the checkout fields automatically when a user selects their location on the map. The plugin has some logic for knowing when to fill out the billing fields versus the shipping field but in some…
url: "https://lpacwp.com/docs/how-to-prevent-map-from-auto-filling-checkout-fields/"
updated: "2023-08-09"
category: Custom Code Samples
---

# How to prevent map from auto-filling checkout fields

By default Kikote will fill in the checkout fields automatically when a user selects their location on the map. The plugin has some logic for knowing when to fill out the billing fields versus the shipping field but in some rare cases you might not want any fields filled out automatically and would rather just have a user select their location on the map.

To do this we can make use of the `lpac_fill_checkout_fields` filter. The following snippet shows how to prevent the map from filling out the fields:

 PHP

```
add_filter('lpac_fill_checkout_fields', '__return_false');
```
