Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save xlplugins/d41ee95802c4ff16907a366744318a2b to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/d41ee95802c4ff16907a366744318a2b to your computer and use it in GitHub Desktop.
Do not run update order review on last step
add_action( 'wfacp_internal_css', function () {
?>
<style>
body #payment.wfacp_enable_loader .blockUI {
display: block !important;
}
</style>
<script>
window.addEventListener('load', function () {
if (undefined !== wfacp_frontend) {
wfacp_frontend.hooks.addFilter('wfacp_switch_steps_run_update_checkout', function (status,b) {
if(true===b.last_step){
status= false;
}
return status;
})
}
})
</script>
<?php
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment