How to prevent map from auto-filling checkout fields

< 1 min read

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');