Created
May 7, 2024 07:56
-
-
Save pramodjodhani/db1a512596570a45d300936511023a5e to your computer and use it in GitHub Desktop.
Flux checkout - display businesses in the address search.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Flux checkout - display businesses in the address search. | |
* | |
* Add this JS snippet right before flux-checkout script. | |
*/ | |
add_filter( 'script_loader_tag', function( $tag, $handle, $src ) { | |
if ( 'flux-checkout' !== $handle ) { | |
return $tag; | |
} | |
?> | |
<script> | |
wp.hooks.addFilter( 'flux_google_autocomplete_options', 'flux', function( options ) { | |
options.types = []; | |
return options; | |
} ); | |
</script> | |
<?php | |
return $tag; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment