This file contains 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
<?php | |
/** | |
* Adding the payment fragment to the WC order review AJAX response | |
*/ | |
add_filter( 'woocommerce_update_order_review_fragments', 'my_custom_payment_fragment' ); | |
/** | |
* Adding our payment gateways to the fragment #checkout_payments so that this HTML is replaced with the updated one. | |
*/ | |
function my_custom_payment_fragment( $fragments ) { |