Created
July 7, 2025 14:59
-
-
Save xlplugins/779908d7ecdbcf7fcf93a6a4aae01d17 to your computer and use it in GitHub Desktop.
Dequeue our google map js
This file contains hidden or 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
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