Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created September 28, 2022 07:57
Show Gist options
  • Save xlplugins/74ca38840de70e1a9e2dc0b4dad1da44 to your computer and use it in GitHub Desktop.
Save xlplugins/74ca38840de70e1a9e2dc0b4dad1da44 to your computer and use it in GitHub Desktop.
Express button load faster
add_action( 'wfacp_run_checkout_event', function () {
?>
<script>
window.addEventListener('bwf_checkout_js_load', function () {
wfacp_frontend.hooks.addFilter('wfacp_run_checkout_event', function () {
return 'dom';
});
});
</script>
<?php
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment