Created
June 23, 2023 14:24
-
-
Save xlplugins/9576e2dbb6143cc297ac36d251611ee4 to your computer and use it in GitHub Desktop.
Trigger Update order review after page load
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( 'wfacp_internal_css', function () { ?> | |
<script> | |
window.addEventListener('bwf_checkout_load', function () { | |
(function ($) { | |
setTimeout(function(){ | |
$(document.body).trigger('update_checkout'); | |
},1000); | |
})(jQuery); | |
}); | |
</script> | |
<?php } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment