Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created July 7, 2025 14:59
Show Gist options
  • Save xlplugins/779908d7ecdbcf7fcf93a6a4aae01d17 to your computer and use it in GitHub Desktop.
Save xlplugins/779908d7ecdbcf7fcf93a6a4aae01d17 to your computer and use it in GitHub Desktop.
Dequeue our google map js
add_action( 'wp_enqueue_scripts', function () {
wp_dequeue_script( 'wfacp_google_js' );
}, 101 );
add_action( 'wp_footer', function () {
if(!is_checkout()){
return;
}
?>
<script>
window.addEventListener('load', function () {
funnelkit_checkout_map_init();
})
</script>
<?php
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment